Windows XP下Apache修改目录后无法访问网页问题解决

来源:互联网 发布:长春工业大学知乎 编辑:程序博客网 时间:2024/04/30 06:18

修改了D:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf中的<Directory "D:\apache_webs">指定为新的本地目录后,无法访问本地HTTP Server,出现的错误如下:

访问:http://127.0.0.1/

错误:


Forbidden

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

访问:http://127.0.0.1/index.html

错误:

Forbidden

You don't have permission to access /index.htmon this server.

解决办法,重新设置上面一段的Directory访问属性:

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    deny from all
</Directory>
==>>>>

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

重启Apache,好了。
原创粉丝点击