Kir*_*lla 2 http-status-code-403 apache-2.2
我有 VirtualHost DocumentRoot "/home/blogs/domain.com"
<VirtualHost domain.com:80>
ServerName domain.com
ServerAlias www.domain.com
ServerAdmin admin@domain.com
DocumentRoot "/home/blogs/domain.com"
<Directory "/home/blogs/domain.com">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
我收到错误 [Thu Apr 19 02:37:15 2012] [crit] [client 12.13.14.15] (13)Permission denied: /home/blogs/.htaccess pcfg_openfile: unable to check htaccess file
我有以下权利...
/home/blogs/
drwx------ (0700)
/home/blogs/domain.com/
drwxrwxr-x (0775)
我是否必须将 blogs 用户添加到 apache 组?我该怎么做?
PS:为什么 apache 在 寻找.htaccess
文件/home/blogs/
,但 DocumentRoot 是/home/blogs/domain.com
谢谢你。
给定/home/blogs/的权限,只有目录的所有者才能看到内容。您可能想要授予 750 或 755 权限,以便 apache 可以读取内容。
它寻找 /home/blogs/.htaccess 文件的原因是您没有从配置中显示的配置选项。它可能是一个<Directory /> AllowOverride ...</Directory>
.
归档时间: |
|
查看次数: |
337 次 |
最近记录: |