stop or disable directory listing in Apache 2

by rajesh 2008-03-14 21:52:32

Go to apache installation folder and edit the access.conf file under conf/ folder

There change the Options for the Directory Context As:

<Directory />
Options -Indexes FollowSymLinks
AllowOverride All
</Directory>

If Indexes is already there then edit it as -Indexes else add -Indexes to the previous arguments.

Here -Indexes is what that will stop the directory or file listing in Apache 2.

Tagged in:

2126
like
0
dislike
0
mail
flag

You must LOGIN to add comments