giovedì 6 settembre 2007

[Apache + CentOS5] - Directory index forbidden by Options directive: /var/www/html/

[Apache + CentOS5] -  Directory index forbidden by Options directive: /var/www/html/


I was having the same exact problem as you, this is what fixed "/" directory listings for me

In /etc/httpd/conf.d you will see a file entitled welcome.conf

It looks like this:

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


Change it to this:

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


All we actually changed was the hyphen in front of Indexes. This worked for me, hopefully it works for you.

Nessun commento: