I am working on a project where users can subscribe to either full site access or access to a certain file selection for a lower price. I am wondering how to change the following .htaccess entry:
AuthName "Bright Video Number 6"
So that access will be given if the user supplies credentials matching an entry in either one or the other of the passwd files. As it is now a second AuthUserFile entry will only override the first and Apache will only look for the credentials in the file defined second, instead of checking both passwd files.
Btw, this is a site for educational videos, not a porn site.
Heh, I was about to crack a porn site joke until I saw that last line. :)
I don't think that there's any way to do that, short of changing Apache's source. As an easy workaround, why not just add the full subscribers to the partial subscriber file, and only use that one to protect files to which both groups should have access?
you can combine AuthUserFile with AuthGroupFile,
and in the latter you can have two groups, 'full'
and 'partial' say. depending on what user has signed
up for you add the username to the appropriate group.
the while site would use
require group full
and for a subdirectory, you can have
require group full partial