I realize this is somewhat off topic here, but it wasn’t obvious to me, and it took quite a few google searches to come up a hints, so I thought someone might benefit from this.
I had what I thought was a pretty simple problem. I have a site that is currenlty protected by a password. You know, something like:
AuthType Basic
AuthName “Allow Specific Users”
AuthLDAPURL ldap://localhost:389/dc=domain,dc=com?uid?sub?(objectClass=*)
require valid-user
to protect the whole site. Now, I also needed a subdirectory to be accessible without a password.
That’s easy, I thought, I probably just need to create a
But in fact the solution is very simple:
just create a .htaccess file and include:
Allow from all
Satisfy Any
And that’s it! Turns out Satisfy Any will let people in if either the require or the Allow matches.
Thank you! This was super useful. Saved me a bunch of time :-)
Many thanks, it works perfectly :)
Many thanks! this solved my problem instantly!
Thank you! You just saved my life :)
Thank you! You just saved me a bunch of hair-pulling!
Thanks – well googled and applied quickly….
I idd took advantage from that – thank you :-)
gracias, real timesaver