apache 配置多个虚拟主机

修改文件:httd.conf

文件地址:D:wampinapacheApache2.2.21conf

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

原文地址:https://www.cnblogs.com/wangkongming/p/3989517.html