tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trm asn <trm.nag...@gmail.com>
Subject Apache+Tomcat+mod_jk
Date Fri, 09 Sep 2011 21:52:48 GMT
Hi List,

Please help me on the below scenario .

I have one war eample.war & which is also having a images folder (
/usr/local/tomcat/webapps/example/images). I will type
http://192.168.65.100and it'll load the "example" apps. What will be
my httpd.conf file syntax
that it ll load the image from apache's "/var/www/images"  folder not from
tomcat.


Httpd.conf
--------------
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel error
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat     "%w %V %T"
JkMount / loadbalancer
JkMount /* loadbalancer

Workers.properties
--------------------------
worker.list=loadbalancer
worker.tomcat1.port=8009
worker.tomcat1.host=192.168.65.102
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=1

worker.tomcat2.port=8009
worker.tomcat2.host=192.168.65.103
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.sticky_session=1
worker.loadbalancer.balanced_workers=tomcat1, tomcat2
worker.loadbalancer.method=Busyness
worker.loadbalancer.lbfactor=1
worker.loadbalancer.sticky_session=1
worker.loadbalancer.stickysessions=true




/\
tRm

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message