Search code examples
apachecentoshttp-status-code-403

Apache 403 Directory index forbidden by Options directive, even with index.html


While attempting to access a certain directory on our server, we get the following 403 error:

# /var/log/httpd/error_log
Directory index forbidden by Options directive: <path-to-directory>

This is the config file used for the directory (which is included in httpd.conf).

# /etc/httpd/conf.d/<name-of-app>.conf
<VirtualHost *:80>
  DocumentRoot "<path-to-directory>"
  ServerName <server-name>

 <Directory "<path-to-directory>">
   Options +Indexes
   Order allow,deny
   Allow from all
   Require all granted
 </Directory>

</VirtualHost>

The directory in question contains an index.html file.

Any help would be greatly appreciated.


Solution

  • I solved this by adding DirectoryIndex index.html to the directory.