码迷,mamicode.com
首页 > Web开发 > 详细

apache AH01630: client denied by server configuration错误解决方法

时间:2014-12-26 16:14:22      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:

今天本来是想要在自己本地搭建一个wamp环境用来做一些代码的测试和框架的学习。

鉴于目前工作的时候用到了php5.5,所以就用了wamp-server V2.5版本,安装完成之后配置虚拟主机一直出现403,各种重启N次卸载重装,最后才好到问题的所在,故记录下来,希望其他同学有这样的问题的时候可以快速的解决~~

apache 虚拟主机配置:

apache AH01630: client denied by server configuration错误解决方法


出现这个错误的原因是,apache2.4 与 apache2.2 的虚拟主机配置写法不同导致。

apache2.2的写法:

<VirtualHost *:80>  
 ServerName fdipzone.demo.com  
 DocumentRoot "/home/fdipzone/sites/www"  
 DirectoryIndex index.html index.php  
  
 <Directory "/home/fdipzone/sites/www">  
  Options -Indexes +FollowSymlinks  
  AllowOverride All  
  Order deny,allow  
  Allow from all  
 </Directory>  
  
</VirtualHost>

 

如果在2.4中使用以上写法就会有apache AH01630: client denied by server configuration错误。
解决方法,apache2.4中

 

    Order deny,allow  
    Allow from all  
    Allow from host ip  

 

修改为

 

1     Require all granted  
2     Require host ip  

 

修改后的配置如下:

 1 <VirtualHost *:80>  
 2  ServerName fdipzone.demo.com  
 3  DocumentRoot "/home/fdipzone/sites/www"  
 4  DirectoryIndex index.html index.php  
 5   
 6  <Directory "/home/fdipzone/sites/www">  
 7   Options -Indexes +FollowSymlinks  
 8   AllowOverride All  
 9   Require all granted  
10  </Directory>  
11   
12 </VirtualHost> 

 

apache AH01630: client denied by server configuration错误解决方法

标签:

原文地址:http://www.cnblogs.com/phper-xf/p/4186896.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!