httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Porter, Mark" <Mark.Por...@LibertyMutual.com>
Subject RE: [users@httpd] Load Balancing Problems
Date Thu, 12 Aug 2004 15:19:10 GMT
You might try setting up DNS this way:

www.domain.com - IP1 and IP2, round-robin.
www1.domain.com - IP1
www2.domain.com - IP2

Have a vhost (or a rewrite rule) on each server so that if the user comes in using www.domain.com,
they get redirected to www1 or www2. Set one machine to send users to www1, the other to www2.

Your "real" site will run as www1 or www2, but that will keep the users stuck to one server,
which should solve your session thing.

Mark



-----Original Message-----
From: Fabricio Luiz Machado [mailto:soproman@yahoo.com.br] 
Sent: Thursday, August 12, 2004 9:41 AM
To: users@httpd.apache.org
Subject: [users@httpd] Load Balancing Problems


Hi there!
I configured a DNS Round Robin load balancing environment.
I know that´s not the better way, but is the way that I can pay... :-(
So, I had two hosts with Apache 1.3.31 and PHP 4.3.8, with some
applications.
The problem is:

 If a client enters in 'server01', it creates a session. After this, if
the same client enters in 'server02', the session doesn´t exist there
and an application error is reported.

 How to solve the session lost problem ?

Sorry about my poor english.

Regards,

Fabricio.


	
	
		
_______________________________________________________
Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade! Acesse: http://br.acesso.yahoo.com/

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


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