求解为什么正常设置,wampserver虚拟站点总是指向localhost
hosts文件修改
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
127.0.0.1 WWW.xigua.com
httpd-vhosts文件修改
<VirtualHost *:80>
ServerName www.xigua.com
DocumentRoot "E:/PHP/"
<Directory "E:/PHP/">
ServerName dummy-host2.example.com
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
输入www.xigua.com直接指向wamp下www目录