wamp多站点设置 (731 views)

不耳

2017-01-17 17:14:21

打开httpd.conf文件,去掉一行注释

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

在文件末设置网站。

 <VirtualHost *:80>
 DocumentRoot "e:/www/shopnc"
 ServerName xk.com
</VirtualHost>

<VirtualHost *:80>
 DocumentRoot "e:/www/test"
 ServerName test.com
</VirtualHost>

要访问,设下host文件就够了

2.4.9的apache要改这里 注释掉:Require all denied

Tags: wamp