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

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

问题描述

我已经安装在我的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禁止:您没有权限访问/在此服务器上

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

有什么建议?

推荐答案

到Apache服务器的访问是由比 127.0.0.1 其他地址在<$ C $禁止C>的httpd.conf (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

<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

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

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