apache 配置多个虚拟主机

修改文件:httd.conf

文件地址:D:\wamp\bin\apache\Apache2.2.21\conf

#配置虚拟主机
<VirtualHost 127.0.0.3:80>
ServerName www.baozhuangji.cn
DocumentRoot "D:/webRoot/metinfo/"
</VirtualHost>

<Directory "D:/webRoot/metinfo/">
Options Indexes FollowSymLinks Multiviews
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>

#配置虚拟主机
<VirtualHost 127.0.0.8:80>
DocumentRoot "D:/yaf/public"
</VirtualHost>

<Directory "D:/yaf/public">
Options Indexes FollowSymLinks Multiviews
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>

posted @ 2014-09-23 22:36  KoMiles  阅读(299)  评论(0编辑  收藏  举报