David's suggestion won't solve your problem... your browser will (deliberately) share credentials or cookies between server1.com and server2.com. As long as the domain names are out of sync, your browser will compartmentalize the information specific to each server. Perhaps you want to reverse proxy server2 behind server1.com, making everything within http://server1.com/server2/... fetch its contents from server? If you were truly load-balancing, then all requests at http://server1.com would be round-robin'ed between the two machines, and the -browser- would think it was always looking at the same server, so the credentials, that is either the cookies or auth passwords, would be common between those boxes. David Wolever wrote:
I don't think Apache likes to do that very much... I'm sure it would be possible to hack your way around it, but the basic authentication scheme is just that... basic. It may be quicker and easier to whip something up in PHP (or Perl, or Python or what have you). I know sessions are really easy in PHP, you could probably do this sort of authentication in a couple of lines (feel free to e-mail me if you'd like those couple lines). David On 1/17/06, farhan ahmed <farhhanahmed@xxxxxxxxxxx> wrote:Hi folks, I have been running 2 apache servers on different machines.And both apache servers are doing basic authentication. I created same users and passwords on both boxes. On the webpage it must ask for user name and passowrd once for either apache1 or apache2, but it asks user name and password for both servers. Is there anyway on client side if you give user name and password once it must not ask for other server. Example Server1: username = abc password = abc Server2: username = abc password = abc my index.html <a href = "http://server1">Server1</a>, when i click on it it asks for user name and password i give and page opens <a href = "http://server2">Server2</a> When I click on that browser must store user name and password in cache and it should not ask for user name and password but it asks for user name and password Please help me Thanks -- Regards, Farhan Ahmed NMS Engineer Soul Australia Level 14, 201 Kent Streen Sydney NSW 2000 Phone(Office): 61 2 8220 6022 Fax(Office): 61 2 9252 6864 Mobile: 61 432 156906 Email: fahmed@xxxxxxxxxxxxxxxxxxxx URL: www.soulaustralia.com.au --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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