httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dick Davies <rasput...@hellooperator.net>
Subject Re: [users@httpd] Using two authentication methods
Date Tue, 05 Apr 2005 19:51:18 GMT
* Saqib.N.Ali@seagate.com <Saqib.N.Ali@seagate.com> [0424 20:24]:
> 
> 
> 
> 
> WebServer: Apache 2.x
> OS: RedHat 4.0 Es
> 
> Hello All,
> 
> I am running a website  that is accessible by 2 different ports on the
> server, i.e. port 5998 and 6998 . Both of these ports based virtual hosts
> point to the same DocumentRoot, and present the same content. Port 5998 is
> used by internal users, and port 6998 is used by external users.
> 
> I want to use two different Authentication mechanism for these 2 ports.
> 
> On port 5998, I want the users to authenticate using LDAP, but users coming
> through port 6998 should be authenticated using .htpasswd file.
> 
> Is this possible?
> 
> I understand <Document /path/to/www> </Document> will not work in this
> case. Do I need to use <Location /> instead????

I take it you mean Directory, not Document.

Yes, use Location / inside each vhost definition. It works fine (and you
don't need to change it if the docroot ever changes).
 
-- 
'Oh, wait you're serious. Let me laugh even harder.'
		-- Bender
Rasputin :: Jack of All Trades - Master of Nuns

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


Mime
View raw message