As a follow up to this post, you should also hide your directories. People have no business browsing the contents of your server using their browser.
The fix is quite simple for Apache:
sudo nano /etc/apache2/apache2.conf
- Look for:
Options Indexes FollowSymLinks
- Then change it to:
Options -Indexes +FollowSymLinks
sudo service apache2 restart
- Check your subfolders if you can browse them via the browser (you shouldn’t be able to)
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?