新网Logo
首页>虚机资讯>

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

登录 注册

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

  • 来源:
  • 更新日期:2018-04-26

摘要:apache AH01630: client denied by server configuration错误解决方法   出现这个错误的原因是,apache2.4 与 apache2.2 的虚拟主机配置写法不同导致。   apache2.2的写法:   [plain] view plain copy     ServerName f

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

 

002UASMrzy7605pjKJv15&690.jpg

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

 

apache2.2的写法:

 

[plain]view plaincopy

 

<VirtualHost*:80> ServerNamefdipzone.demo.com DocumentRoot"/home/fdipzone/sites/www" DirectoryIndexindex.htmlindex.php <Directory"/home/fdipzone/sites/www"> Options-Indexes+FollowSymlinks AllowOverrideAll Orderdeny,allow Allowfromall </Directory> </VirtualHost>


如果在2.4中使用以上写法就会有apache AH01630: client denied by server configuration错误。

 

解决方法,apache2.4中

 

[plain]view plaincopy

 

Orderdeny,allow Allowfromall Allowfromhostip

修改为

 

 

[plain]view plaincopy

 

Requireallgranted Requirehostip


修改后的配置如下:

 

 

[plain]view plaincopy

 

<VirtualHost*:80> ServerNamefdipzone.demo.com DocumentRoot"/home/fdipzone/sites/www" DirectoryIndexindex.htmlindex.php <Directory"/home/fdipzone/sites/www"> Options-Indexes+FollowSymlinks AllowOverrideAll Requireallgranted </Directory> </VirtualHost>