client denied by server configuration client denied by server configuration apache apache

client denied by server configuration


In my case, I modified directory tag.

From

<Directory "D:/Devel/matysart/matysart_dev1">  Allow from all  Order Deny,Allow</Directory>

To

<Directory "D:/Devel/matysart/matysart_dev1">  Require local</Directory>

And it seriously worked. It's seems changed with Apache 2.4.2.


For me the following worked which is copied from example in /etc/apache2/apache2.conf:

<Directory /srv/www/default>    Options Indexes FollowSymLinks    AllowOverride None    Require all granted</Directory>

Require all granted option is the solution for the first problem example in wiki.apache.org page dedicated for this issue for Apache version 2.4+.

More details about Require option can be found on official apache page for mod_authz module and on this page too. Namely:

Require all granted -> Access is allowed unconditionally.


The error "client denied by server configuration" generally means that somewhere in your configuration are Allow from and Deny from directives that are preventing access. Read the mod_authz_host documentation for more details.

You should be able to solve this in your VirtualHost by adding something like:

<Location />  Allow from all  Order Deny,Allow</Location>

Or alternatively with a Directory directive:

<Directory "D:/Devel/matysart/matysart_dev1">  Allow from all  Order Deny,Allow</Directory>

Some investigation of your Apache configuration files will probably turn up default restrictions on the default DocumentRoot.