How to Disable Apache Directory Listing (Autoindex)

In ubuntu if you want to disable autoindex feature completely -for obvious security reasons- you may disable the autoindex extension.

a2dismod autoindex -f

If you are on a shared server etc. and do not have this option you may try to remove ‘Indexes’ from httpd.conf

Leave a Reply

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