Forum Moderators: phranque

Message Too Old, No Replies

/ index of/?

how do i disable this feature?

         

gregger2

8:36 pm on Mar 1, 2005 (gmt 0)



hi I am running Apache/2.0.52 and I am not sure how to make the server not show the index listing of the directories.
thanks for your help in advance,

Greg

jb605

8:47 pm on Mar 1, 2005 (gmt 0)

10+ Year Member



Try this:

<Directory /path_to_your_directory/>
Options -Indexes
</Directory>

sitz

2:22 am on Mar 2, 2005 (gmt 0)

10+ Year Member



Alternatively, if one has no desire for directory indexes *anywhere* on the site, (and one is running with a DSO-enabled Apache) simply uncomment the LoadModule line (and AddModule line, if present) for mod_autoindex and bounce Apache. This has the added benefit of reducing the number of modules Apache loads, which is generally a good idea. Not that removing them arbitrarily is a good idea, but removing ones you know you're not going to need is.

Of course, this assumes you have write access to Apache's configuration file. =)