this example is in use

# Begin workers.propertie file
#
# Insert this entry in /etc/hosts
# to name resolution without DNS
# 192.168.1.10      tomcatpro1.uni.edu.br tomcatpro1
# 192.168.1.11      tomcatpro2.uni.edu.br tomcatpro2
# 192.168.1.12      tomcatpro3.uni.edu.br tomcatpro3

#************ definition to tomcatpro1
worker.tomcatpro1.port=8009
worker.tomcatpro1.host=tomcatpro1
worker.tomcatpro1.type=ajp13
worker.tomcatpro1.lbfactor=3
worker.tomcatpro1.local_worker=1
#worker.tomcatpro1.cachesize=10

#************ definition to tomcatpro2
worker.tomcatpro2.port=8009
worker.tomcatpro2.host=tomcatpro2
worker.tomcatpro2.type=ajp13
worker.tomcatpro2.lbfactor=3
worker.tomcatpro2.local_worker=1
#worker.tomcatpro2.cachesize=10

#************ definition to tomcatpro3
worker.tomcatpro3.port=8009
worker.tomcatpro3.host=tomcatpro3
worker.tomcatpro3.type=ajp13
worker.tomcatpro3.lbfactor=3
worker.tomcatpro3.local_worker=1
#worker.tomcatpro3.cachesize=10

#************ definition to loadbalancer to application
worker.lbportal.type=lb
worker.lbportal.balanced_workers=tomcatpro1,tomcatpro2,tomcatpro3
worker.lbportal.local_worker_only=1

#************* definition to workers to JK work
worker.list=lbportal

# END workers.propertie file
---------------------------------------
IN HTTPD.CONF insert in end of file

Include conf/mod-jk.conf
---------------------------------------
In conf/mod-jk.conf file insert


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 +ForwardURICompat -ForwardDirectories

JkRequestLogFormat "%w %V %T"

JkMount /you_app_context/* lbportal

------------------------------------------------------

Att,

Silvio Cesar L. dos Santos
Analista de Redes Pleno
DTI - Divisão de Tecnologia da Informação
UNIGRANRIO - Universidade do Grande Rio
+55 21 2672-7720
[EMAIL PROTECTED]
http://www.unigranrio.edu.br


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to