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>

你可能感兴趣的:(apache)