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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]