How to disable directory browsing.

You can simply create a .htaccess file with the following:

Options -Indexes

OR

open apache2 configuration file:

sudoedit /etc/apache2/apache2.conf

and change from:

to

and restart apache2:

sudo service apache2 restart

Leave a Reply

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