Client refused server configuration

I am trying to configure a kohana 3 project as a virtual host.

Config:

<VirtualHost *:80> DocumentRoot "D:/Devel/matysart/matysart_dev1" ServerName matysart-one.local ServerAlias www.matysart-one.local DirectoryIndex index.php </VirtualHost> 

Error (403):

[client 127.0.0.1] client refused server configuration: D: / Devel / matysart / matysart_dev1 /

Did anyone help?

+42
apache virtualhost kohana-3
Dec 07 '11 at 9:30
source share
5 answers

In my case, I changed the directory tag.

FROM

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

For

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

And it really worked. This seems to have changed with Apache 2.4.2.

+83
Sep 05
source share
— -

The following was executed for me, which is copied from the 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 example of the problem on the wiki.apache.org page dedicated to this problem for Apache version 2.4 +.

More detailed information about the requirement can be found on the official apache page for the mod_authz module and on this page too . Namely:

Require all provided → Access is granted unconditionally.

+21
Sep 27 '13 at 15:36
source share

The error "client that refused the server configuration" usually means that somewhere in your configuration there are Allow from and Deny from directives that prevent access. Read the mod_authz_host documentation for more details .

You should solve this problem in your VirtualHost by adding something like:

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

Or alternatively with the Directory directive:

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

Some research into your Apache configuration files is likely to result in default restrictions for the default DocumentRoot.

+17
Dec 07 '11 at 2:05 a.m.
source share

This happened to me several times, moving from Apache 2.2.

What I found is that there is an order, deny that I missed it using the VIM search function, anyway, this is the main default Vhost, line 379. I hope this helps someone. I commented on the Denial of Answer, Allow and Deny From Everything, and it worked!

0
Feb 25 '14 at 0:00
source share

it worked for me ..

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

I have included this code in my / etc / apache2 / apache2.conf

0
Jul 27 '15 at 12:31 on
source share



All Articles