繁体   English   中英

这个apache virtualhost指令有什么问题?

[英]What is wrong with this apache virtualhost directive?

我在apache 2.2的virtualhost目录中收到403禁止的错误。 有人可以帮忙吗?

<VirtualHost *:80>
  ServerName www.xyz.com
  ServerAlias xyz.com
  DocumentRoot "/home/bruce/projects/links/www"

  <Directory />
    AllowOverride None
    Options Indexes FollowSymLinks
    Order allow,deny
    Allow from all
  </Directory>

  DirectoryIndex index.html index.htm index.jsp index.php
</VirtualHost>

谢谢!

日志中的EDIT错误为

(13)Permission denied: access to / denied

如果我没记错的话,您已经在< Directory>指出了文件系统的根目录,它应该是:

<VirtualHost *:80>
ServerName www.xyz.com
ServerAlias xyz.com
DocumentRoot "/home/bruce/projects/links/www"

<Directory /home/bruce/projects/links/www>
...

加。 最终导致我确实被禁止访问该页面。 我正在使用新的虚拟服务器提供商,并且他们将我的/ home帐户设置为仅我可以读取。 结果,运行apache的用户无法查看文件。 我将主目录上的权限更改为更宽松,现在一切正常。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM