Apache: Directory index forbidden by Options directive

If you see ‘Directory index forbidden by Options directive: ‘ error in Apache error_log file, it’s most likely that you do not have the default ‘index.html’ page on the directory you are trying to access. To fix this, either enter the page name you want to access (such as http://myhost/somedir/index.php) or add that page name to the DirectoryIndex directive in Apache ‘httpd.conf’ file.

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>
This entry was posted in apache. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


*

This site uses Akismet to reduce spam. Learn how your comment data is processed.