Disabling Directory Listing on Amazon Linux
Nov 21, 2014 08:02 · 153 words · 1 minute read
The first step in disabling directory listing is to find the httpd.conf file.
On Amazon Linux, you’ll find it in /etc/httpd/conf
Open the file using your favourite text editor.
Locate a a line which looks a bit like this …
Options Indexes FollowSymLinks
Remove the Indexes keyword from the list of options.
Save the file
Restart Apache.
Now if you try and browse to the directory, you’ll get something like this.
Job Done :)
This e-mail and all attachments (“e-mail”) is private and confidential. If you receive the e-mail in error, let us know by reply e-mail, delete it from your system and destroy all copies. The e-mail is the property and confidential information of Reckon Limited, or one of its related companies**.** Reckon Limited does not warrant that the information in the e-mail is error or omission free. This e-mail is not a quotation or proposal and no contractual obligations shall arise.