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]

 



>> 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 '*'?

Almost!
Unfortunately, it just transfers the problem....

Doing what you suggested means they can now see the directory - but the
wont get prompted for authentication until they click on the link for a
file...
Sadly, the protected files are not listed.

There must be some way to force apache to list/show protected files ....

-Nick





Extranet
cdunigan@xxxxxxxxxxxxx - 20/04/2005 15:31


Please respond to users@xxxxxxxxxxxxxxxx



To:    users

cc:


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


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



This message and any attachments (the "message") is 
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet 
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

**********************************************************************************************

BNP Paribas Private Bank London Branch is authorised 
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in the
United Kingdom.

BNP Paribas Securities Services London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in the 
United Kingdom.
  
BNP Paribas Fund Services UK Limited is authorised and 
regulated by the Financial Services Authority.


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