Apache: disable directory listing

Open the file httpd.conf

Change the below lines

Options Indexes FollowSymLinks

to

Options -Indexes
Apache: disable directory listing

5 thoughts on “Apache: disable directory listing

    1. Dmitriy says:

      Ubuntu, Apache 2.4.7

      1) sudo gedit /etc/apache2/apache2.conf

      2) remove “Indexes” from line and save file

      # Options Indexes FollowSymLinks
      Options FollowSymLinks
      AllowOverride None
      Require all granted

      3) sudo /etc/init.d/apache2 restart

      Like

Leave a comment