| Author |
Configure 2 instances of JBOSS with apache as the frontend using mod_jk
|
ts kumar
Greenhorn
Joined: Apr 12, 2012
Posts: 1
|
|
Hi,
I am trying to configure 2 JBOSS instances something like this
/appl/jboss/jbossinstance1
/appl/jboss/jbossinstance2
i have configured apache with mof_jk and configured the mod_jk.conf in conf folder as below
*******************************************************************
LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkMount /__application__/* loadbalancer
JkUnMount /__application__/images/* loadbalancer
JkMountFile conf/uriworkermap.properties
JkShmFile run/jk.shm
<Location /jkstatus>
JkMount status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
*******************************************************************
work.properties configuration
*******************************************************************
worker.list=loadbalancer,status
# Define Node1
worker.node1.port=8009
#worker.node1.host=127.0.0.1
worker.node1.host=www.domain1.com
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node1.prepost_timeout=10000
worker.node1.connect_timeout=10000
worker.node1.connection_pool_size=30
# Define Node2
worker.node2.port=8109
#worker.node2.host=127.0.0.1
worker.node2.host=www.domain2.com
worker.node2.type=ajp13
worker.node2.lbfactor=1
worker.node2.prepost_timeout=10000
worker.node2.connect_timeout=10000
worker.node2.connection_pool_size=30
# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2
worker.loadbalancer.sticky_session=True
# Status worker for managing load balancer
worker.status.type=status
*******************************************************************
uriworkermap.properties
*******************************************************************
# Simple worker configuration file
#
# Mount the Servlet context to the ajp13 worker
/*=loadbalancer
/jmx-console=loadbalancer
/jmx-console/*=loadbalancer
/web-console=loadbalancer
/web-console/*=loadbalancer
/myapp/*=loadbalancer
!/myapp/images/*=loadbalancer
*******************************************************************
but when i start my apache & both the jboss instances, i get the web-console or default page of the first jboss instance i start.
Please help me to fix this.
|
 |
Martin Vajsar
Bartender
Joined: Aug 22, 2010
Posts: 2385
|
|
Hi, and welcome to the Ranch!
I've moved your question to the JBoss forum, where I believe you'll get better help. Please see CarefullyChooseOneForum for further information on this.
|
 |
 |
|
|
subject: Configure 2 instances of JBOSS with apache as the frontend using mod_jk
|
|
|