Forum Moderators: phranque

Message Too Old, No Replies

How to Hide directory listing

         

atul_iiit

8:58 pm on Aug 24, 2005 (gmt 0)

10+ Year Member



Hi Apache Gurus,
I have a directory which contains jsp, js, htm & html pages . Alias for this directory is
A_JSP /<full directory path>

so when I type htt://<servername>/A_JSP/ , I see directory listing which I don't want visible to others. So in httpd.conf I put directory directive like

<Directory /directorypath/>
Order allow,deny
deny from all
</Directory>

Bounced apache but directory listing in still available :(

1. Am I doing somthing wrong?
2. How can I hide directory listing?
3. Which other file might be overwriting it?
4. Where can I get documentation to fix this issue?

Regards
Atul

encyclo

9:28 pm on Aug 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are two ways - the first is to place:

Options -Indexes

In a .htaccess. The second is simply to upload a blank index.html file into the directory. :)

atul_iiit

10:18 pm on Aug 24, 2005 (gmt 0)

10+ Year Member



Hi Encyclo,

Second one putting blank index.html seems nice workaround :-)

First one .htaccess seems works well, can you please tell me whats does that mean? ( options?)

Options -Indexes

Is there any place where I can get information abbout this .

If you have any idea why deny from all in Directory directive not working?

Its working on some other server witout .htaccess even :(

jdMorgan

11:10 pm on Aug 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A good place to start is [httpd.apache.org...] -- all the Apache documentation, online.

Jim