Tuesday, July 22, 2014

Disable Directory Listings in Apache

1. Navigate to your Apache config file (httpd.conf)
2. Edit the config file vi httpd.conf or /etc/apache2/sites-enabled# vi 000-default
                                     Search for the directory section of the file where your website resides, and the Options keyword beneath that. It should look something like:                        
                                   Options Indexes                         
Update the option 'Indexes' from the above, so the line would read instead:
                                  Options -Indexes

No comments:

Post a Comment

bloggerwidgets