码迷,mamicode.com
首页 > Web开发 > 详细

Apache配置虚拟主机

时间:2016-10-28 19:49:06      阅读:201      评论:0      收藏:0      [点我收藏+]

标签:index   rom   配置   virt   cal   bsp   log   host   blog   

#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配置虚拟主机

标签:index   rom   配置   virt   cal   bsp   log   host   blog   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!