开发中项目链接不能访问解答
有关C:WindowsSystem32driversetc目录hosts设置
#127.0.0.1 localhost
127.0.0.1 link.com
127.0.0.1 super.com
#255.255.255.255 broadcasthost
#::1 localhost
#fe80::1%lo0 localhost
检查注释是否取消。
有关apache配置http-vhosts.conf
<VirtualHost *:80>
ServerAdmin chenshuox@126.com
DocumentRoot "D:developwampwwwdevsuper"
ServerName super.com
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>
检查虚拟映射目录配置是否正确。
如果以上都不正确可以检查环境变量配置是否正确,如果127.0.0.1可以正常访问,说明环境变量配置正确。