David Beroff (d4b) wrote,
David Beroff

Overriding Authentication

I'm trying to grant access to anyone for certain subdirectories of an otherwise protected site.

The top-level has an .htaccess of:
AuthName "For Prosper202 Admin only"
AuthType Basic
AuthUserFile /path/to/web/data/.htpasswd
require user (username)

That does what it's supposed to. The subdirectories in question have an .htaccess of:
AuthName "Public Access"
AuthType None
Require all granted

Right now, I'm getting an Internal Server Error from the desired subdirectory http://ad.learn-the-secret.info/tracking202/redirect/ and Rackspace doesn't seem to make error logs available, so I'm having trouble figuring out what's going on. :-(

Any ideas?

Update: Looks like I may have been doing this correctly, as per documentation for the current version of Apache (2.4), but thanks to others with the same question, I found out that I also need at least Satisfy Any, and possibly Allow from all, in the subdir, as per documentation for version 2.2 (because that's what Rackspace has). I'm still a bit confused, since the doc for the older (deprecated?) Satisfy directive says that this is only useful if one is using Allow, (which I wasn't).
Tags: lts, webdev
  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded