drupality drupality - 3 months ago 15
Apache Configuration Question

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?

Answer

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.