错误 403。Wamp 服务器
我已经安装了wamp服务器2.2 我使用的是 Windows 7
当我当时在线时我无法使用 WaMp 找到 localhost 它给了我一些禁止的错误..你没有访问权限类型的错误。
但是当我断开互联网连接时,我可以获得 localhost..PHPmyadmin 和 WAMP 服务器的所有功能。
我尝试了很多方法,将 Apache httpd .conf 更改为 Replace All..."Deny all"
为 "Allow all"
但仍然无法得到它在线。
I have installed wamp server 2.2
I'm using windows 7
When I am online at that time i'm not able to find localhost using WaMp
its giving me some Forbidden Error..You Don't have Access kind of error.
But when I disconnect my internet connection, I can get localhost..PHPmyadmin and all feature of WAMP server.
I tried a lot by changing the Apache httpd .conf to Replace All..."Deny all"
to "Allow all"
but still, i'm not able to get it online.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
将服务器放在连接菜单中对我没有帮助。如果您使用的是 Wamp 服务器 2.2E,您会在
httpd.conf
文件中找到这些行,将它们更改为
这解决了我的问题。
Putting server online in contect menu did not help me. If you are using Wamp server 2.2E you will find the lines in your
httpd.conf
fileChange them to to
This solved my problem.
剪切并粘贴:
编辑 Apache 配置文件 httpd.conf 并找到以下行:
将其更改为:
它有效。
Cut and paste:
Edit the Apache configuration file httpd.conf and find the lines:
Change them to:
It works.
您可以将
127.0.0.1
更改为::1
或将Deny from all
更改为Allow from all
代码>httpd.conf 文件。我有一个关于 Windows 8 上此错误的博客,网址为 http://www.webtrunghieu.info/site? p=21You can change
127.0.0.1
to::1
or changeDeny from all
toAllow from all
in thehttpd.conf
file. I have a blog about this error on Windows 8 at http://www.webtrunghieu.info/site?p=21您的 www 目录中也可能有一个 .htaccess 文件导致此错误。请务必检查一下。
You may also have a .htaccess file within your www directory which is causing this error. Be sure to check that.
转到 C:/Windows/System32/drivers/etc/host
找到
“#127.0.0.1 本地主机”
行并通过删除 # 符号取消注释
即使您以管理员身份登录,也可能会收到“访问被拒绝”消息。
要解决此问题,请右键单击文件编辑软件,然后单击以管理员身份运行。
您应该能够保存文件,然后
本地主机应该可以正常工作。
Go to C:/Windows/System32/drivers/etc/host
find the
"#127.0.0.1 localhost"
line and uncomment it by removing the # sign
It is possible that you get an 'access denied' message even when you are logged in as an administrator.
To work around that, right click on your file editing software and click run as administrator.
You should be able to save the file then
Localhost should work just fine after that.
我尝试了此处发布的解决方案,但无法在 Windows 8 计算机上启动 wamp 2.2。 wamp 服务器论坛的 此链接解决了问题。我需要在 httpd.conf 文件中将“Listen 80”更改为“Listen 0.0.0.0:80”。这可能是我的机器特有的问题,但解决方案非常有效。
I tried solutions posted here, but did not work to get wamp 2.2 started on windows 8 machine. This link from wamp server forum solved issue. I needed to change "Listen 80" to "Listen 0.0.0.0:80" in httpd.conf file. This may be an issue specific to my machine but the solution worked like a charm.
只需要让你的 wampserver 上线
在托盘中右键单击 wamp 图标并在线
just need put your wampserver online
in tray right-click on wamp icon and Put Online