[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Apache serving webapps from multiple tomcats
Hi all,
To set it up so apache can server webapps from multiple tomcat
instances, you need to do something like the following:
1) In /etc/tomcat/jk/workers.properties, create a new worker
definition similar to the following:
worker.remote.port=8009
worker.remote.host=clarke.pisoftware.com
worker.remote.type=ajp13
worker.remote.lbfactor=1
2) Add the name you gave the new worker (in this case, remote) to
worker.list and worker.loadbalancer.balanced_workers.
3) Add something like the following to an appropriate part of
httpd.conf
JkMount /webapp remote
JkMount /webapp/* remote
4) Restart apache, and enjoy.
Thanks,
Brad
--
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
|Brad Marshall | Plugged In Software|
|Senior Systems Administrator | http://www.pisoftware.com|
|mailto:bmarshal@pisoftware.com | GPG Key Id: 47951BD0 / 1024b|
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
Fingerprint: BAE3 4794 E627 2EAF 7EC0 4763 7884 4BE8 4795 1BD0