List Protected Directories

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


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-26-2005
Markus Fuchs
 
Posts: n/a
Default List Protected Directories

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


  #2 (permalink)  
Old 01-26-2005
Alvaro G. Vicario
 
Posts: n/a
Default Re: List Protected Directories

*** 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
--
  #3 (permalink)  
Old 01-27-2005
Markus Fuchs
 
Posts: n/a
Default Re: List Protected Directories

"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


  #4 (permalink)  
Old 01-27-2005
Alvaro G. Vicario
 
Posts: n/a
Default Re: List Protected Directories

*** 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
--
  #5 (permalink)  
Old 01-31-2005
Markus Fuchs
 
Posts: n/a
Default Re: List Protected Directories

"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


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:52 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0