Disable directory listing (index) in Apache

Add line
Options –Indexes
sudo /etc/init.d/apache2 reload


find line:
Options Indexes FollowSymLinks MultiViews
And add "-" in front of the "Indexes":
Options -Indexes FollowSymLinks MultiViews
sudo /etc/init.d/apache2 reload

Ubuntu Server


Subscribe to receive occasional updates on new posts.
Your email will not be used for any other purpose and you can unsubscribe at any time.
Please wait