【发布时间】:2014-08-16 09:31:39
【问题描述】:
我开发位于 /home/user/projects 目录中的项目。此目录是 chmod 777。问题是当我尝试访问此目录或任何子目录时,我总是收到错误 403 Forbidden。这就是我的 /etc/apache2/sites-available/000-default.conf 的样子:
<VirtualHost *:80>
ServerName localhost
ServerAdmin user@user.com
DocumentRoot /home/user/projects
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Options +FollowSymLinks
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
allow from all
</Directory>
<Directory /home/gtakacs/projects>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
Require all granted
</Directory>
</VirtualHost>
这有什么问题?当我使用 /var/www 作为我的文档根目录时,一切正常。
【问题讨论】:
标签: apache2 http-status-code-403