Apache-win2003环境下 403错误解决一例

apache 403错误,显示信息如下: --------------------------------------------------------------------------------------------------- 您无权查看该网页 您可能没有权限用您提供的凭据查看此目录或网页 果您确信能够查看该目录或网页,请尝试使用 192.168.1.5 主页上所列的电子邮件地址或电话与网站联系。
可以单击搜索,寻找 Internet 上的信息。
HTTP 错误 403 - 禁止访问 Internet Explorer
----------------------------------------------------------------------------------------------------- 去掉显示友好信息的钩后显示Forbidden   You don't have permission to access \ on this server.
----------------------------------------------------------------------------------------------------- apache昨天调试了一下午,都没有解决这个问题,到今天上午,仔细检查了一遍配置文件httpd.conf,找到这么一段: <Directory />      Options FollowSymLinks      AllowOverride None      Order deny,allow      deny from all      Satisfy all </Directory> 然后试着把deny from all中的deny改成了allow,保存后重起了apache,然后再一测试我的网页,哈哈!居然问题就出在这,访问测试网站完全正常了。
APACHE升级到2.2版本之后,提供和支持不少模块的支持,性能和安全上也有不少改进。
所有往常我们配置好apache的httpd.conf之后,即可使用,但是现在我们必须额外对这个文件进行其他方面的配置,不然会出现 http 403权限问题错误。以下是解决方法。下面是httpd.conf文件的其中一段原代码。我们必须把下面代码红色标志进行更改:
<Directory "E:/wamp/www">
    #     # Possible values for the Options directive are "None", "All",     # or any combination of:     #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews     #     # Note that "MultiViews" must be named *explicitly* --- "Options All"     # doesn't give it to you.     #     # The Options directive is both complicated and important. Please see     # [url]http://httpd.apache.org/docs/2.2/mod/core.html#options[/url]     # for more information.     #     Options Indexes FollowSymLinks
    #     # AllowOverride controls what directives may be placed in .htaccess files.     # It can be "All", "None", or any combination of the keywords:     #   Options FileInfo AuthConfig Limit     #     AllowOverride all
    #     # Controls who can get stuff from this server.     # #   onlineoffline tag - don't remove     Order Deny,Allow     Deny from all     Allow from 127.0.0.1
</Directory>
红色部分更改为 Allow from all ,也就是所有访问允许通过。

转载于:https://www.cnblogs.com/lchangelo/archive/2013/05/17/3084423.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值