apache 访问出现403 Forbidden

#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.
#
<Directory />
AllowOverride none
Require all denied
</Directory>

以上内容限制用户访问系统根目录,这应该是apache的默认安全设置,但是也限制了我们的设置目录地址,于是将上述内容修改成:

<Directory />
AllowOverride none
# Require all denied
Options FollowSymLinks
Order deny,allow
allow from all
</Directory>

posted @ 2014-08-31 09:48  _光明  阅读(141)  评论(0编辑  收藏  举报