我一直在遇到我的虚拟主机的问题,我不明白为什么apache会查找/home/*
目录,如果我的虚拟主机的目录是在别的地方?
tail -f /var/log/apache2/error.log /home/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
苏丹
它不应该。 你必须在你的Apacheconfiguration中有这个地方。
或者您的webdirectory /代码中的某个软链接位于您的主帐户。
755是答案,因为所有的文件都必须由railo读取(实际上与你的Apache不同)。
尝试chmod 755 /home/www
然后执行“hostdirectory”
chmod 755 /home/www/hostdirestory
/home
权限可能不允许apache正确读取目录。
网站的文档根目录应位于/var/www
或/srv/www
。 这使您可以在主目录树上具有严格的安全性。
为您的虚拟服务器指定完整的DocumentRoot
。
检查您是否为您的虚拟服务器启用了用户目录。 这些会走/home
树。