Windows 7 上的 WAMP 403 禁止消息 [英] WAMP 403 Forbidden message on Windows 7

查看:29
本文介绍了Windows 7 上的 WAMP 403 禁止消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的 Windows 7 机器上安装了 WAMP 2.1 版.当我在浏览器中浏览到 localhost 时,可以看到 WAMP 服务器页面.

I have installed WAMP version 2.1 on my windows 7 machine. When i browse to localhost in my browser, the WAMP server page is visible.

但是当我在浏览器中浏览到我的 IP 时,我收到消息

But when I browse to my IP in my browser, I get the message

403 Forbidden:您无权访问/在此服务器上.

403 Forbidden: You don't have permission to access / on this server.

有什么建议吗?

推荐答案

httpd.conf 中除了 127.0.0.1 之外的地址禁止访问你的 Apache 服务器(Apache 的配置文件):

The access to your Apache server is forbidden from addresses other than 127.0.0.1 in httpd.conf (Apache's config file) :

<Directory "c:/wamp/www/">
    Options Indexes FollowSymLinks
    AllowOverride all
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
</Directory>

您的 PHPMyAdmin 访问也是如此,配置文件是 phpmyadmin.conf :

The same goes for your PHPMyAdmin access, the config file is phpmyadmin.conf :

<Directory "c:/wamp/apps/phpmyadmin3.4.5/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order Deny,Allow
        Deny from all
        Allow from 127.0.0.1
</Directory>

您可以将它们设置为允许来自所有 IP 地址的连接,如下所示:

You can set them to allow connections from all IP addresses like follows :

AllowOverride All
Order allow,deny
Allow from all

这篇关于Windows 7 上的 WAMP 403 禁止消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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