HTML5开发中链接访问问题

开发中项目链接不能访问解答

有关C:\Windows\System32\drivers\etc目录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:\develop\wamp\www\dev\super"
    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可以正常访问,说明环境变量配置正确。
posted @ 2016-02-17 11:35  花间草  阅读(183)  评论(0编辑  收藏  举报