apache configuration, relax Auth restriction on 1 file?

Alex Dean alex at crackpot.org
Thu Dec 22 09:40:35 MST 2005


I figured this out.  The 'Satisfy' directive applied to the 1 file I  
wanted to open up was what I needed.  In case anyone has similar  
issues, here's what I did...

# main config very restrictive
<Directory /var/www/restricted>
   SSLRequireSSL
   AuthName "Restricted"
   AuthType Basic
   AuthUserFile /var/www/.htpasswd
   AuthGroupFile /dev/null
   Require user Restricted
</Directory>

# relaxed for 1 script
<Files /var/www/restricted/open.php>
   Order Deny,Allow
   Allow from all
   Satisfy Any
</Files>

Merry Christmas, Happy Hannakah!

alex

On Dec 22, 2005, at 9:16 AM, Alex Dean wrote:

> I have a site which requires HTTP authentication.  There is 1  
> script I would like to allow anyone to access, even if they don't  
> have access to the site in general.
>
> Are there directives I can use to turn off HTTP authentication?  I  
> don't want to have to explicitly list all the directories on the  
> site except for the 1 script I want to leave open.
>
> Seems like it would be ideal to do 1 restrictive <Directory> block  
> for the entire site, with AuthType, Require, etc...  and then to  
> add another <Files> block with something like 'AuthType none', but  
> I don't see that 'none' is a valid option.  Any other way to do this?
>
> thanks,
> alex
> .
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

.





More information about the PLUG-discuss mailing list