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>
posted @ 2016-08-03 13:49  TBHacker  阅读(1007)  评论(0编辑  收藏  举报