Apache: disable directory listing

Open the file httpd.conf

Change the below lines

Options Indexes FollowSymLinks

to

Options -Indexes
Advertisements
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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s