阿帕奇403禁止

我有VirtualHost与DocumentRoot "/home/blogs/domain.com"

 <VirtualHost domain.com:80> ServerName domain.com ServerAlias www.domain.com ServerAdmin [email protected] DocumentRoot "/home/blogs/domain.com" <Directory "/home/blogs/domain.com"> AllowOverride All Allow from All </Directory> </VirtualHost> 

我得到错误[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)

我必须添加博客用户到Apache组? 我该怎么做?

PS:为什么apache在/home/blogs/寻找.htaccess文件,但是DocumentRoot是/home/blogs/domain.com

谢谢。

给定/ home / blogs /的权限,只有目录的所有者才能看到内容。 你可能想授予750或755的权限,所以Apache可以读取内容。

其查找/home/blogs/.htaccess文件的原因是您的configuration中没有显示的configuration选项。 这可能是一个<Directory /> AllowOverride ...</Directory>