原因是没有授权。vhost配置的正确打开方式是:
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "E:\wamp\vhosts\www.bugshoot.cn"
ServerName www.xxxx.cn
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
<Directory "E:\wamp\vhosts\www.xxxx.cn">
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
Require all granted
</Directory>
</VirtualHost>
特别需要注意的是,Require all granted,意味线上,否则只能使用127.0.0.1访问