On 5/16/06, Chris Toledo <[EMAIL PROTECTED]> wrote:

We have a basic authentication setup that requires separate set of users to
log in to separate sites. As you can see from the setup below we are
separating authentication by site. This can be tedious as we create and
remove sites quite frequently. We want to implement one authorization line
that will match site to AuthUserFile. We want to avoid having to add
Authentication directive for every site created going forward. Is there a
way to use something like regular expressions and LocationMatch to have
Apache automatically match the site to the authentication file? IE: User
logs to site 2, Apache automatically routes to authentication file ...
"c:\data\configurations\users2.txt". I have tried doing the
following with no success…

No, there is no straight-forward way to do this.  I suggest simply
automating the maintenance of your config file using some tool that
can easily generate the required configuration changes.

An alternative is to have one password file that applies to all the
sites and then use mod_rewrite to check a dbm or txt database file to
see if the authenticated user is in the right "group" for the
directory.

Joshua.

---------------------------------------------------------------------
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]

Reply via email to