client denied by server configuration on apache 2.2

安装了apache2.2之后,将原来notebook上的虚拟主机配置添加到httpd-vhosts.conf,访问,发现页面显示:You don’t have permission to access。
检查error.log,发现client denied by server configuration的字样。

对比apache2.0和2.2的配置文件,发现在Directory部分配置不一样。
2.0:

Options FollowSymLinks
AllowOverride None

2.2:

Options FollowSymLinks
AllowOverride None
Order allow,deny
Deny from all
Satisfy all

按2.0修改,就可以了。具体的原因应该是设计上的安全考虑,到底如何以后再说吧。目前先保持可用。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.