首页 > 代码库 > apache 访问出现403 Forbidden

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>

apache 访问出现403 Forbidden