【发布时间】:2015-05-23 15:32:04
【问题描述】:
这是我在 /etc/httpd/conf/extra/httpd-vhosts.conf 中的指令
<VirtualHost *:80>
ServerName sub.somedomain.com
DocumentRoot "srv/http/subdir"
<Directory '/srv/http/subdir'>
Options -Indexes +FollowSymlinks
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
当我尝试访问 subdir 中的任何文件时,我得到 403 access denied 错误。我重新启动了 apache,我也将 /srv/http 中所有文件的所有权更改为 http:http。
【问题讨论】:
标签: apache