Hexa's Blog

Apache Web Server, Forbidden Error

17/04/2015 etc

Problem: Apache Web Server announces that Forbidden Error, given that developers configure Allow and Deny directory with no mistake Reason: A lack of Indexes for files in directory. Solution: Add option Indexes in directory tag <Directory>

Example: The following configuration causes forbidden error

<Directory "/home/pvt/apache2/htdocs">
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

The following configuration solve the problem

<Directory "/home/pvt/apache2/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>