Directory index forbidden by Options directive: /var/www/html/

No GoodNeed ImprovementOKGoodExcellent (No Ratings Yet)
Loading ... Loading ...

If you see httpd errors like this in /var/log/httpd/error_log:

Sun Apr 13 02:58:22 2008] [error] [client ::1] Directory index forbidden by Options directive: /etc/httpd/htdocs/

Create an index.html file under in /etc/httpd/htdocs/ directory,

Then, edit welcome.conf in /etc/httpd/conf.d directory:

<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>

Change it to this:

<LocationMatch “^/+$”>
Options Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>

Problem will be solved

Popularity: 2%

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word