Today, colleagues consulting through the Apache build virtual host, build a good discovery has been error, tips
"Apache Ah01630:client denied by server configuration", searched the internet for a bit,
The reason for this error is that apache2.4 differs from apache2.2 's virtual host configuration.
apache2.2 's wording:
[Plain] View plain copy on code to see a snippet derived from my Code slice
<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>
If you use the above notation in 2.4, there will be an Apache ah01630:client denied by server configuration error.
Workaround, in apache2.4
[Plain] View plain copy on code to see a snippet derived from my Code slice
Order Deny,allow
Allow from all
Allow from host IP
Revision changed to
[Plain] View plain copy on code to see a snippet derived from my Code slice
Require all granted
Require Host IP
The modified configuration is as follows:
[Plain] View plain copy on code to see a snippet derived from my Code slice
<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
Require all granted
</Directory>
</VirtualHost>
This article from "Flat Light is true" blog, please be sure to keep this source http://ucode.blog.51cto.com/10837891/1893862
Troubleshooting Apache Virtual host error ah01630:client denied by server configuration errors