所有通过WAMP的本地主页都被封锁了? [英] All localhost pages via WAMP blocked?

查看:149
本文介绍了所有通过WAMP的本地主页都被封锁了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我尝试通过本地主机上的WAMP访问我的页面之一时,我一直试图修复一个奇怪的403 Forbidden错误。一个通过apache使用的Windows防火墙打开端口80的规则,我注意到这不能解决我的问题,而是给我一个403通过localhost禁止所有我的页面。



删除我刚刚制作的规则(导致该规则开始)并未解决此问题。禁用Windows防火墙不会修复它。重新启动我的电脑不能解决它。任何想法?

编辑2:
我能够去localhost / phpmyadmin的任何值得。



EDIT3:我的httpd.conf的内容:
http://www.mediafire.com /?p54a53443efkefs

解决方案

在httpd.conf中,找到以下部分并确保它们是正确的:



DocumentRootC:/ wamp / www

 < Directory /> 
选项无
AllowOverride无
拒绝所有
命令拒绝,允许
< / Directory>

<目录C:/ wamp / www>
选项无
AllowOverride全部
允许,拒绝
全部
允许< / Directory>

这些是我在安装时使用的设置,它们工作正常。如果您进行任何更改,请确保您重新启动Apache。



如果您仍然遇到问题,请使用httpd.conf更新原始问题。

b



编辑:



这是kludgey,我只是在这里抓住吸管,尝试在您的虚拟主机中添加新条目:

 < VirtualHost *:80> 
DocumentRootC:/ wamp / www
ServerName localhost
< / VirtualHost>


I've been trying to fix a weird 403 Forbidden error I get when I try to go to one of my pages via WAMP on the localhost.

After adding a rule to open up port 80 via Windows Firewall, which apache uses, I notice that this does NOT fix my problem and instead gives me a 403 forbidden for ALL my pages via localhost.

Removing the rule I just made (which caused this to begin with) does not fix it. Disabling Windows Firewall does not fix it. Restarting my computer does not fix it. Any ideas?

EDIT2: I AM able to go to localhost/phpmyadmin for whatever that's worth.

EDIT3: The contents of my httpd.conf: http://www.mediafire.com/?p54a53443efkefs

解决方案

In httpd.conf, find the following sections and ensure they are correct:

DocumentRoot "C:/wamp/www"

<Directory />
    Options None
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

<Directory C:/wamp/www>
    Options None
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

Those are the settings that I am using in my install and they work fine. Make sure you restart Apache if you make any changes.

If you continue having issues, please update your original question with your httpd.conf.


Edit:

This is kludgey and I'm just grasping at straws here, but try adding a new entry to your vhosts:

<VirtualHost *:80>
    DocumentRoot "C:/wamp/www"
    ServerName localhost
</VirtualHost>

这篇关于所有通过WAMP的本地主页都被封锁了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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