Yes, I've tried this: <Location /> AuthType Basic AuthName "Development Site" AuthUserFile /etc/apache2/auth/dev-passwd Require valid-user </Location> <Location /foo> Order allow,deny Allow from all </Location>But that doesn't work...I get the auth request for /foo still. I've also tried tricks with SetEnvIf and Satisfy Any, but to no avail.
/foo isn't a physical directory, btw...this is a rails application, and foo actually maps to a controller.
Cheers, Brad Bill Jones wrote:
On 5/13/06, Brad Greenlee <brad@xxxxxxxxxx> wrote:I'm trying to have everything on one site be protected with basic auth, except for requests starting with /foo. This should work, but it doesn't: <LocationMatch "^/(?!foo)"> AuthType Basic AuthName "Development Site" AuthUserFile /etc/apache2/auth/dev-passwd Require valid-user </LocationMatch>Have you tried over riding just the /foo directory with .htaccess? Order Allow,Deny Allow from All
--------------------------------------------------------------------- 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