Re: [users@httpd] Options Indexes: how to force listing of directories with access control settings?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 19 Apr 2005 nick.minutello@xxxxxxxxxxxxxxxxx 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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux