How to disable directory browsing in apache/httpd?
How to disable directory browsing in apache/httpd?
vi or nano /etc/apache/httpd.conf
looks as follows:
Options Includes Indexes FollowSymLinks MultiViews
then remove word Indexes and save the file. The line should look like this one:
Options Includes FollowSymLinks MultiViews
After it is done, restart apache
/etc/init.d/apache2 restart