Search code examples
securityapacheindexingwebserver

How to disable directory indexing from apache2 when going to the server's root?


I need to disable that indexing when I enter on my root directory on a apache2 server, any tips?


Solution

  • If it's only one directory that you want to protect from viewing contents, you can also just add an index.html or index.php that will show whenever someone browses to that directory.