Fix subfolder directory listing forbidden HTTPD / Apache2 in Fedora 17


This is the most annoying problem when you setup httpd in Fedora 17. Fedora apache directory listing for subfolder became forbidden and only allowing for folder that have “index.html” or “index.“. Solution to fix this problems is very easy.

Open “/etc/httpd/conf/httpd.conf” and put this into bottom line:

1
2
3
<DirectoryMatch  /home/yodi/htdocs/(.)*/>
        Options +Indexes
</DirectoryMatch>

And make sure “/etc/httpd/conf.d/welcome.conf”:

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

Now you got subfolder in Apache have directory listing


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.