This is a discussion on List Protected Directories within the Apache Web Server forums, part of the Web Server and Related Forums category; Heyhey, I'm kinda new to apache configuration. Is it possible to show protected directories in a directory listing? Some ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Heyhey,
I'm kinda new to apache configuration. Is it possible to show protected directories in a directory listing? Some files/dirs (e.g. .htaccess and protected dirs) seem to be invisible... I already tried the LimitExcept statement in httpd.conf for the protected directory, but it doesn't work; e.g.: <LimitExcept ...> Require valid-user </LimitExcept> Any help greatly appreciated! Markus |
|
|||
|
*** Markus Fuchs escribió/wrote (Wed, 26 Jan 2005 21:18:04 +0100):
> I already tried the LimitExcept statement in httpd.conf for the protected > directory, but it doesn't work; e.g.: > > <LimitExcept ...> > Require valid-user > </LimitExcept> I don't know whether it's possible to display hidden files and directories--probably not since it isn't mentioned in the mod_autoindex documentation [1]. But the LimitExcept directive [2] is totally unrelated: "<LimitExcept> and </LimitExcept> are used to enclose a group of access control directives which will then apply to any HTTP access method not listed in the arguments" [1] http://httpd.apache.org/docs-2.0/mod/mod_autoindex.html [2] http://httpd.apache.org/docs-2.0/mod...ml#limitexcept -- -+ Álvaro G. Vicario - Burgos, Spain +- http://www.demogracia.com (la web de humor barnizada para la intemperie) ++ Manda tus dudas al grupo, no a mi buzón -+ Send your questions to the group, not to my mailbox -- |
|
|||
|
"Alvaro G. Vicario" wrote:
> *** Markus Fuchs escribió/wrote (Wed, 26 Jan 2005 21:18:04 +0100): > > I already tried the LimitExcept statement in httpd.conf for the protected > > directory, but it doesn't work; e.g.: > > > > <LimitExcept ...> > > Require valid-user > > </LimitExcept> > > I don't know whether it's possible to display hidden files and > directories--probably not since it isn't mentioned in the mod_autoindex > documentation [1]. But the LimitExcept directive [2] is totally unrelated: > > "<LimitExcept> and </LimitExcept> are used to enclose a group of access > control directives which will then apply to any HTTP access method not > listed in the arguments" > > [1] http://httpd.apache.org/docs-2.0/mod/mod_autoindex.html > [2] http://httpd.apache.org/docs-2.0/mod...ml#limitexcept > Alvaro, Thank you for your quick response. You seem to be right. In the 2.1 docs I found a ShowForbidden option for the IndexOptions directive that could be what I'm looking for. When will the Apache 2.1 binaries be available for download? Or is it possible to run mod_autoindex from version 2.1 on an Apache 2.0 installation? Markus |
|
|||
|
*** Markus Fuchs escribió/wrote (Wed, 26 Jan 2005 21:18:04 +0100):
> Is it possible to show protected directories in a directory listing? Some > files/dirs (e.g. .htaccess and protected dirs) seem to be invisible... > I already tried the LimitExcept statement in httpd.conf for the protected > directory, but it doesn't work; e.g.: I've checked my httpd.conf file and I've found this directive: # # IndexIgnore is a set of filenames which directory indexing should ignore # and not include in the listing. Shell-style wildcarding is permitted. # IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t You can't cancel it once set (that's what I was trying to do) but you can simply remove the .??* entry to display hidden files. -- -+ Álvaro G. Vicario - Burgos, Spain +- http://www.demogracia.com (la web de humor barnizada para la intemperie) ++ Manda tus dudas al grupo, no a mi buzón -+ Send your questions to the group, not to my mailbox -- |
|
|||
|
"Alvaro G. Vicario" wrote:
> I've checked my httpd.conf file and I've found this directive: > > > # > # IndexIgnore is a set of filenames which directory indexing should ignore > # and not include in the listing. Shell-style wildcarding is permitted. > # > IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t > > > You can't cancel it once set (that's what I was trying to do) but you can > simply remove the .??* entry to display hidden files. Thank you Alvaro, I forgot about this directive. Unfortunately this does only allow listing of hidden files (not directories). Seems like I have to wait for Apache 2.1 since I could not make it work to list hidden directories yet... :( Markus |