httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <tevans...@googlemail.com>
Subject Re: [users@httpd] Password protect all but one directory
Date Wed, 23 Feb 2011 17:46:35 GMT
On Wed, Feb 23, 2011 at 5:40 PM, Jon Drukman <jsd@cluttered.com> wrote:
> I want to password protect my entire site, except for one URL (which is needed
> for a load balancer health check).  I've done this:
>
> <Location />
>  AuthType Digest
>  AuthName "password protected"
>  AuthUserFile /srv/passwd.digest
>  Require valid-user
> </Location>
>
> <Location /ping>
>   Satisfy any
>   Allow from all
> </Location>
>
>
> It doesn't work.  Requests for /ping are still requiring password authentication.
>
> Is there a way to make this work?
>
>

<LocationMatch ^(?!/ping)
  AuthType Digest
  AuthName "password protected"
  AuthUserFile /srv/passwd.digest
  Require valid-user
</LocationMatch>

Cheers

Tom

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