Jump to content


Photo

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


  • Please log in to reply
6 replies to this topic

#1 Dallas

Dallas
  • New Members
  • Pip
  • Newbie
  • 4 posts
  • LocationMoscow

Posted 07 October 2003 - 09:25 AM

...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!

#2 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 07 October 2003 - 03:39 PM

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?
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#3 Dallas

Dallas
  • New Members
  • Pip
  • Newbie
  • 4 posts
  • LocationMoscow

Posted 07 October 2003 - 07:03 PM

exactly! ...heh, my english :)

#4 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 07 October 2003 - 10:23 PM

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

<Directory /path/to/directory>
Options -Indexes
</Directory>


Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#5 Dallas

Dallas
  • New Members
  • Pip
  • Newbie
  • 4 posts
  • LocationMoscow

Posted 08 October 2003 - 03:17 AM

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

#6 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 08 October 2003 - 04:22 AM

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>


Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#7 Dallas

Dallas
  • New Members
  • Pip
  • Newbie
  • 4 posts
  • LocationMoscow

Posted 08 October 2003 - 10:43 AM

Thank you very much!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users