Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

client denied by server configuration

I try to setup kohana 3 project as 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 denied by server configuration: D:/Devel/matysart/matysart_dev1/

Could somebody help?

like image 335
Codium Avatar asked Dec 07 '11 09:12

Codium


People also ask

How do I fix client denied server configuration?

Using mod_security with an explicit directive to deny access. Altering or commenting out the offending directives from that module will resolve the issue.


1 Answers

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.

like image 72
Umair A. Avatar answered Oct 27 '22 00:10

Umair A.