httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Brock <mbr...@gameaccount.com>
Subject Re: [users@httpd] Problems making exceptions to Apache authentication
Date Fri, 26 Oct 2007 10:32:38 GMT
Thanks Joshua. That didn't work for some reason but it led me to  
trying some similar things out, and I ended up with a solution which  
excludes certain IP addresses from the authentication process, which  
should work fine for us as an alternative to excluding certain URLs:

<Location />
   Order deny,allow
   Deny from all
   Allow from 1.2.3.4
   AuthType Basic
   AuthName "NAME"
   AuthUserFile /usr/local/www/.htpasswd
   Require user USER
   Satisfy any
</Location>

Regards.

Matt.

On 25 Oct 2007, at 18:09, Joshua Slive wrote:

> On 10/25/07, Matt Brock <mbrock@gameaccount.com> wrote:
>> Hi.
>>
>> I'm applying some authentication across all of a site site using the
>> following:
>>
>> <Location "/*">
>
> The "*" is unnecessary.
>
>>           AuthName "NAME"
>>           AuthType Basic
>>           AuthUserFile /usr/local/www/.htpasswd
>>           AuthGroupFile /dev/null
>
> Delete the above line.
>
>>           require user USER
>> </Location>
>>
>> However, there is one specific URL pattern that I need to make an
>> exception for.
>
> Listing the following AFTER the existing <Location> should work:
>
> <Location /unrestricted-url>
> Order deny,allow
> Allow from all
> Satisfy Any
> </Location>
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

--
Matt Brock
Senior System Administrator

GameAccount
77 Oxford Street
London W1D 2ES

Phone: +44 (0)20 7659 2515
Fax:   +44 (0)20 7659 2233
Email: mbrock@gameaccount.com
Web:   http://www.gameaccount.com/


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message