[users@httpd] Automatically VirtualHost to AuthUserFile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am new to Apache. I have a basic authentication setup that requires
seperate set of users to log in to seperate sites. As you can see from
the setup below I am seperating authentication by site. This can be
tedious as we create and remove sites quite frequently. Is there a way
to use regular expressions and something like LocationMatch to have
Apache automatically match the site (or virtualhost) to the
authentication file? IE: User logs to site 2, Apache automatically
routes to authentication file ... "c:\data\configurations\users2.txt".
Again, I am new to this so I am sorry if this is quite simple to do. I
have searched a lot of documentation with little success. Thank you in
advance.
.......................

  Alias "/site1" "c:/data/live/site1"
  <Location "/site1">
      AuthType Basic
      AuthName "Enter Password:"
      AuthUserFile c:\data\configurations\users1.txt
      Require valid-user
  </Location>

  Alias "/site2" "c:/data/live/site2"
  <Location "/site2">
      AuthType Basic
      AuthName "Enter Password:"
      AuthUserFile c:\data\configurations\users2.txt
      Require valid-user
  </Location>

  Alias "/site3" "c:/data/live/site3"
  <Location "/site3">
      AuthType Basic
      AuthName "Enter Password:"
      AuthUserFile c:\data\configurations\users3.txt
      Require valid-user
  </Location>


...........................
Christian Toledo
Web Administrator
WebCollage Inc.
P: 646.827.2579
F: 212.563.2112

 
-----Original Message-----
From: Vic Feria [mailto:danzman1@xxxxxxxxxxx] 
Sent: Monday, May 15, 2006 9:43 AM
To: users@xxxxxxxxxxxxxxxx
Subject: RE: [users@httpd] ASPDotNet


Yes, I have seen Mod_mono. I was not successful in making it work. I did
however loaded the aspmodule from the Apache web site and that works
beautifully. I just do not know its capability and how it compares with
Microsoft's IIS6.



-----Original Message-----
From: Bill Jones [mailto:tetragondzein@xxxxxxxxx] 
Sent: Sunday, May 14, 2006 10:34 AM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] ASPDotNet

On 5/14/06, Vic Feria <danzman1@xxxxxxxxxxx> wrote:
> About a week ago I read somewhere that Microsoft is posing to support
Apache
> in its DotNet endeavor. I would like to verify if there is any truth
to
> this. Does anyone know?

Have you seen mod_mono?  Active Server Pages are not just for Windows
IIS any longer.
-- 
WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/

---------------------------------------------------------------------
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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux