RE: [users@httpd] 2 Tomcat instances on one box: stop bouncing between them?

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

 



Those have not been set. I will try that now and report back.

Just some information, this happens even when the instances are on different boxes. I have two different Tomcat instances on different boxes, but being handled by two virtual hosts inside the same Apache config. Doesn't matter if the Tomcats are on the same box, or different box....still happens.

-Andrew

 

-----Original Message-----
From: Oliver.Schaudt@xxxxxxxxx [mailto:Oliver.Schaudt@xxxxxxxxx] 
Sent: Saturday, March 11, 2006 1:48 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] 2 Tomcat instances on one box: stop bouncing between them?

You said you are using "default config". Most of the time the Host inside the config of the TOMCAT is "localhost". There you should insert dev.foobar.com and stage.foobar.com instead. Can you check this ?

bye

Oliver


-----Ursprüngliche Nachricht-----
Von: Clute, Andrew [mailto:Andrew.Clute@xxxxxxxxxxxxxx]
Gesendet: Fr 10.03.2006 17:49
An: users@xxxxxxxxxxxxxxxx
Betreff: [users@httpd] 2 Tomcat instances on one box: stop bouncing between them?
 
I have one box, that hosts both my dev and stage environments. Both are different config directories inside of JBoss 4.0.3sp1. Each one is bound to a different IP address. 

I have turned on the jvmRoute for both instances. 

The domain names are dev.foobar.com and stage.foobar.com 

For some reason, while my URL in the browser will stay the same, it will flip between which JBoss instance is responding. And when I look at the cookies for each flip, they are the exact same (sometimes I will get a '.stage' appending, but be shown the dev site). 

I am using the default config, so clustering is not enabled (I think). 

I am fronting this with Apache 2.2, using the new mod_proxy_ajp settings. 

Here is the relelvant httpd.conf sections: 


Code:	
<VirtualHost *>
ServerName stage.foobar.com
ErrorLog logs/stage-error_log.log
CustomLog logs/stage-access.log combined

ProxyPass /jcore ajp://192.168.2.87/jcore smax=5 max=20 ttl=30 retry=60 route=stage ProxyPreserveHost on </VirtualHost>


<VirtualHost *>
ServerName dev.foobar.com
ErrorLog logs/stage-error_log.log
CustomLog logs/stage-access.log combined

ProxyPass /jcore ajp://192.168.2.85/jcore smax=5 max=20 ttl=30 retry=60 route=dev ProxyPreserveHost on </VirtualHost>




There is no consistent nature to this. Anyone seen something like this before?
 
Thanks in advance!
 
-Andrew
 


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