Apache配置虚拟主机

IT/互联网 / 编程语言 养生小编 来源:互联网 15浏览 0评论

#IncludeOptional "D:/wamp/vhosts/*"Include "D:/wamp/alias/*"####配置虚拟主机NameVirtualHost *:80<VirtualHost *:80>    ServerName  localhost    documentRoot "D:/www"</VirtualHost><Directory "D:/www" >    Options Indexes FollowSymlinks    AllowOverride All    Order allow,deny    Allow from all</Directory>NameVirtualHost *:80<VirtualHost *:80>    ServerName  www.a.com    documentRoot "D:/www/aaa/test/app"</VirtualHost><Directory "D:/www/aaa/test/app" >    Options Indexes FollowSymlinks    AllowOverride All    Order allow,deny    Allow from all</Directory>NameVirtualHost *:80<VirtualHost *:80>    ServerName  www.mdata.com    documentRoot "D:/www/data"</VirtualHost><Directory "D:/www/data" >    Options Indexes FollowSymlinks    AllowOverride All    Order allow,deny    Allow from all</Directory>

 

Apache配置虚拟主机

原文:http://www.cnblogs.com/renxing123/p/6008955.html