httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Dunigan <>
Subject Re: [users@httpd] Options Indexes: how to force listing of directories with access control settings?
Date Wed, 20 Apr 2005 14:31:04 GMT
On Tue, 19 Apr 2005 wrote:

> I am using .htaccess to control access to a directory.
> However, this hides the directory from the index listing of its parent dir
> (if the user isnt logged in).
> Is there a trick to Options, IndexOptions or AuthXXX to list all
> directories, regardless of their access control, when a user isnt logged
> in?
> I want a user to be able to see the directories they need to login to
> enter. (then when they click, on them, they will need to login). At the
> moment, they dont even know the directory is there...
> httpd.conf
> -------------------
>     <Directory "/data/scm/buildarchive/archives">
>         Options Indexes MultiViews
>         IndexOptions +FoldersFirst +SuppressDescription
>         AllowOverride AuthConfig
>         Order allow,deny
>         Allow from all
>     </Directory>
> .htaccess in /data/scm/buildarchive/archives/ARCH1
> -------------------
> AuthType Basic
> AuthName "RESTRICTED ACCESS: Login Required for this archive"
> AuthUserFile /data/scm/buildarchive/archives/ARCH1/.passwd
> Require user user1 user2
> Thanks in advance,
> Nick

Bit of a guess, here, but why not try putting all of the Auth stuff in
.htaccess inside a Files block, with a match of '*'?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message