I have a fresh install of Apache2 on Debian testing and configured a virtual host in a directory like this:
<Directory "/path/to/project">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
However it shows me a 403 Forbidden error when I access it and the error log shows:
[Mon Sep 23 22:07:57.249276 2013] [authz_core:debug] [pid 8599] mod_authz_core.c(802): [client 127.0.0.1:49057] AH01626: authorization result of Require all denied: denied
[Mon Sep 23 22:07:57.249349 2013] [authz_core:debug] [pid 8599] mod_authz_core.c(802): [client 127.0.0.1:49057] AH01626: authorization result of <RequireAny>: denied
[Mon Sep 23 22:07:57.249361 2013] [authz_core:error] [pid 8599] [client 127.0.0.1:49057] AH01630: client denied by server configuration: /path/to/project/some_file
Why is it showing "result of Require all denied: denied" if I'm using "Require all granted"?
They files are readable by any user and just in case I tried changing the owner to Apache (www-data) without luck. Also, the default host on http://localhost
works normally and phpmyadmin in http://localhost/phpmyadmin
works too.
All help I've found on the Internet is about replacing the Order directive with Require. I've already done that. What could be the problem now?