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>
千里之行,始于足下。改变现在,就是改变未来。改变未来,从现在开始。
个人网站:http://www.wangkongming.cn