我在使用 chrome 和 Internet Explorer 访问 localhost (127.0.0.1) 时遇到问题,但使用 firefox 和 opera 没有这样的问题..
当我尝试访问 127.0.0.1 时,收到以下消息:
您无权访问此服务器上的 /
我曾尝试重新安装 wamp 服务器,但无济于事。
我应该更改任何设置以解决此问题吗?
提前致谢
试试这个,它对我有用:
尝试步骤:
test.html
. 然后在浏览器中,访问“http://127.0.0.1/test.html”。在那里放一些内容-例如<p>Hello world</p>
。如果你可以在 Firefox 中访问它,但不能在 Chrome 或 IE 中访问,那么这不是站点配置问题。