Jump to content

Archived

This topic is now archived and is closed to further replies.

Dallas

How can i hide the structure of shared files by apache?

Recommended Posts

...i just know that it is some string in httpd.conf but dunno which exactly.

Sorry for my english - i\'m from Russia.

Thank you!

Share this post


Link to post
Share on other sites

what do you mean by hiding the structure? i\'m a little confused... are you talking about users accessing a directory and getting a file listing?

Share this post


Link to post
Share on other sites

i thought your english was fine :D here is what you need:

 

<Directory /path/to/directory>

Options -Indexes

</Directory>

Share this post


Link to post
Share on other sites

is that right if i disable displaying listing of some folder all the child folders will be hidden too?

Share this post


Link to post
Share on other sites

that is correct; however you can override that by making one for the child:

 

<Directory /path/to/directory>  

Options -Indexes  

</Directory>

 

<Directory /path/to/directory/CHILD>  

Options +Indexes  

</Directory>

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.