Wednesday, 11 December 2013

Apache 2.2 Forbidden 403 error

While configuring some virtual hosts for local development, I had some trouble with 403 forbidden error. (Apache/2.2.22)

Fix: add this to your virtualhost

<Directory /path/to/document/root/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
AuthType None
Satisfy Any
Require all granted
</Directory>

Also make sure the document root folder has search permissions (755 is fine)