禁止:您无权访问此服务器上的/,WAMP 错误 [英] Forbidden: You don't have permission to access / on this server, WAMP Error

查看:43
本文介绍了禁止:您无权访问此服务器上的/,WAMP 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 windows 8 上安装了 wamp 并且每当我访问 localhost 或 phpmyadmin 时都会收到上述错误.经过大量搜索,我找到了许多答案,包括将 httpd.conf 修改为 Allow from All 等.链接显示了这样一个常见的答案以及更多信息.

I have installed wamp on windows 8 and received above error whenever I go to localhost or phpmyadmin. After much searching I found many answers which includes modifying the httpd.conf to Allow from All etc. This link shows such a common answer with further information.

我的问题是,许多人认为它允许所有用户访问 phpMyAdmin,它不安全且易受攻击等.我想创建完全安全的 WAMP 服务器,如果我这样做可以吗?

My problem is that many have argued that it gives permission to all users to access phpMyAdmin and it is insecure and vulnerable etc. I want to create perfectly secure WAMP server and is it OK if I do this?

有人可以提供一些参考或信息吗?

Can someone please provide me with some reference or information?

推荐答案

我发现最好的(也是最不令人沮丧的)路径是从 Allow from All 开始,然后,当你知道它会起作用时这样,将其缩放回更安全的 Allow from 127.0.0.1Allow from ::1 (localhost).

I find the best (and least frustrating) path is to start with Allow from All, then, when you know it will work that way, scale it back to the more secure Allow from 127.0.0.1 or Allow from ::1 (localhost).

只要您的防火墙配置正确,Allow from all 应该不会造成任何问题,但如果您不需要其他计算机能够这样做,最好只允许来自 localhost访问您的网站.

As long as your firewall is configured properly, Allow from all shouldn't cause any problems, but it is better to only allow from localhost if you don't need other computers to be able to access your site.

当您对 httpd.conf 进行更改时,不要忘记重新启动 Apache.它们将在下次启动之前生效.

Don't forget to restart Apache whenever you make changes to httpd.conf. They will not take effect until the next start.

希望这足以让您入门,网上有很多可用的文档.

Hopefully this is enough to get you started, there is lots of documentation available online.

这篇关于禁止:您无权访问此服务器上的/,WAMP 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆