Apapce 2: How to turn off directory listings

Directory listings can be a security threat .

By default apache has bellow lines:

 
Options Indexes FollowSymLinks

Delete indexes from that line, so it will be like bellow

 
Options  FollowSymLinks

Now restart apache daemon.

It will stop Apache to show directory listing .

Leave a Reply

*