我一直有这个access denied
错误。我在CentOs 6.4上使用apache 2.2.15 。
服务器正在使用 user和 group运行。在家里,我有一个用户staging。我将他添加到apache 组。apache
apache
对 docs 文件夹的权限是:
drwxrwx--- 2 staging staging 4096 Oct 4 14:33 docs
我正在使用 index.html 文件进行测试:
-rw-r--r-- 1 staging staging 13 Oct 4 14:28 index.html
SELinux被禁用。我使用的地址是staging.mysite.com
我的httpd.conf
样子是这样的:
<Directory "/home/*/docs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
我还有一个虚拟主机设置为我的暂存地址:
<VirtualHost SERVERIP:80>
ServerName staging.mysite.com
DocumentRoot /home/staging/docs
ServerAdmin staging@mysite.com
CustomLog /home/staging/logs/access_log combined
</VirtualHost>
如果您需要更多信息,请告诉我,但知道为什么它会给我这个错误吗?