tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Sarti <marco.sa...@plangroup.it>
Subject Re: mod_jk workers contact 'localhost' instead of the configured host
Date Fri, 01 Apr 2011 14:57:19 GMT
My apologies to all the list for this stupid mistake... you are right.
Thank you.

Marco Sarti 
Plansoft Srl - via Rosellini, 25 Firenze 
Cell: (+39)3489932833 
Skype: msarti66 




----- Messaggio originale ----- 
Da: "Konstantin Kolinko" <knst.kolinko@gmail.com> 
A: "Tomcat Users List" <users@tomcat.apache.org> 
Inviato: Venerdì, 1 aprile 2011 16:45:43 
Oggetto: Re: mod_jk workers contact 'localhost' instead of the configured host 

2011/4/1 Marco Sarti <marco.sarti@plangroup.it>: 
> Hi, 
> 
> I'm working with mod_jk 1.2.31 for Apache 2.2.3 under RedHat Linux and I'm trying to
configure a simple two JBoss nodes load balancer. 
> No virtualhost are used. 
> Workers are configured as follow: 
> ------------- 
> worker.lnxstagjboss1_staging3.port=8009 
> worker.lnxstagjboss1_staging3.host=172.16.133.117 
> worker.lnxstagjboss1_staging3.type=ajp13 
> worker.lnxstagjboss1_staging3.lbfactor=1 
> 
> worker.lnxstagjboss2_staging3.port=8009 
> worker.lnxstagjboss2_staging3.host=172.16.133.118 
> worker.lnxstagjboss2_staging3.type=ajp13 
> worker.lnxstagjboss2_staging3.lbfactor=1 

How the above names (with "staging" in them) match to the ones below 
(with "partition" in them)? 


> 
> worker.loadbalancer3.type=lb 
> worker.loadbalancer3.sticky_session=1 
> worker.loadbalancer3.balance_workers=lnxstagjboss1_partition3,lnxstagjboss2_partition3

> ------------ 
> 
> The two JBoss bind to the addresses 172.16.133.117 and 172.16.133.118, not localhost.

> When running Apache, the worker try to connect to localhost instead of the two hosts
and obviously does not work. This is the relevant part of log: 
> 
> [Fri Apr 01 15:14:29 2011][6809:4864] [debug] ajp_validate::jk_ajp_common.c (1996): worker
lnxstagjboss1_partition3 contact is 'localhost:8009' 
> ... 
> [Fri Apr 01 15:14:29 2011][6809:4864] [debug] ajp_validate::jk_ajp_common.c (1996): worker
lnxstagjboss2_partition3 contact is 'localhost:8009' 
> 

--------------------------------------------------------------------- 
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org 
For additional commands, e-mail: users-help@tomcat.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message