Switching apache directory listings off

itf

Well-Known Member
May 9, 2002
624
0
316
[quote:bbc173e7f5][i:bbc173e7f5]Originally posted by flashhosts[/i:bbc173e7f5]

Anyone shed some light on this? preferably through ssh.....


Thanks[/quote:bbc173e7f5]
I think you don't like to disable directory listing (browsing) for the entire server,
Any user can enable and disable directory browsing (listing) by uploading an .htaccess file to that directory, which contains this:

[quote:bbc173e7f5][i:bbc173e7f5].htaccess[/i:bbc173e7f5]

Options -indexes
[/quote:bbc173e7f5]

i.e if you make an .htaccess file in images directory then no one can list (browse) it via browser but all images are accessible by using their URLs like this:
http://domain.com/images/sample.jpg
 

flashhosts

Active Member
Sep 1, 2002
32
0
156
itf, I begining to like you :p everytime I have a question you are one of the first to respond and most times your answer works first time (the only other time was the email problem which you where right when I upgraded it worked) I got the directory listings working thanks to you..


Robert