Apache+PHP多端口多站点

简介:

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80
Listen 8081
Listen 8082
Listen 8083
<VirtualHost *:8081>
    ##ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot "D:/xampp/htdocs/storehelper"
    ServerName local.storehelper.com
    <Directory "D:/xampp/htdocs/storehelper">
    DirectoryIndex index.php index.htm index.html
    AllowOverride all
    Order Deny,Allow
    Allow from all
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ##ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot "D:/xampp/htdocs/yunlutong"
    ServerName local.yunlutong.com
    <Directory "D:/xampp/htdocs/yunlutong">
    DirectoryIndex index.php index.htm index.html
    AllowOverride all
    Order Deny,Allow
    Allow from all
    </Directory>

</VirtualHost>


本文转自TBHacker博客园博客,原文链接:http://www.cnblogs.com/jiqing9006/p/5732620.html,如需转载请自行联系原作者


相关文章
|
Ubuntu Apache PHP
解决Ubuntu下Apache不解析PHP问题
解决Ubuntu下Apache不解析PHP问题
209 5
|
Ubuntu Apache
apache2 ubuntu18.04 配置虚拟端口
apache2 ubuntu18.04 配置虚拟端口
110 0
|
6月前
|
Ubuntu PHP
Ubuntu下使用apt为Apache2编译PHP7.1
以上就是在Ubuntu系统下,使用apt为Apache2编译PHP7.1的过程。希望这个过程对你有所帮助,如果你在执行过程中遇到任何问题,都可以在网上找到相关的解决方案。
117 25
|
6月前
|
Ubuntu PHP Apache
在Ubuntu系统中为apt的apache2编译PHP 7.1的方法
以上就是在Ubuntu系统中为apt的apache2编译PHP 7.1的方法。希望这个指南能帮助你成功编译PHP 7.1,并在你的Apache服务器上运行PHP应用。
147 28
|
6月前
|
关系型数据库 MySQL Linux
查看Linux、Apache、MySQL、PHP版本的技巧
以上就是查看Linux、Apache、MySQL、PHP版本信息的方法。希望这些信息能帮助你更好地理解和使用你的LAMP技术栈。
314 17
|
8月前
|
网络协议 Unix 应用服务中间件
|
11月前
|
数据库连接 PHP Apache
PHP在Apache中如何运行?
PHP在Apache中如何运行?
379 5
apache+tomcat配置多站点集群的方法
apache+tomcat配置多站点集群的方法
138 4
|
关系型数据库 MySQL 应用服务中间件
win7系统搭建PHP+Mysql+Apache环境+部署ecshop项目
这篇文章介绍了如何在Windows 7系统上搭建PHP、MySQL和Apache环境,并部署ECShop项目,包括安装配置步骤、解决常见问题以及使用XAMPP集成环境的替代方案。
179 1
win7系统搭建PHP+Mysql+Apache环境+部署ecshop项目
|
网络协议 Apache

推荐镜像

更多