Troubleshooting Apache Virtual host error ah01630:client denied by server configuration errors

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.