Friday, November 21, 2014

Disabling Directory Listing on Amazon Linux

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.

No comments:

A little about Me

My photo
My name is Mitch Beaumont and I've been a technology professional since 1999. I began my career working as a desk-side support engineer for a medical devices company in a small town in the middle of England (Ashby De La Zouch). I then joined IBM Global Services where I began specialising in customer projects which were based on and around Citrix technologies. Following a couple of very enjoyable years with IBM I relocated to London to work as a system operations engineer for a large law firm where I responsible for the day to day operations and development of the firms global Citrix infrastructure. In 2006 I was offered a position in Sydney, Australia. Since then I've had the privilege of working for and with a number of companies in various technology roles including as a Solutions Architect and Technical team leader.