apache - ProxyPass setup for multiple tomcat instances -
i tried implementing load balancing using mod_jk 2 tomcat instance.
it holds except case of spring security check. when try using j_spring securitycheck. not working. upon googling, solution provided.
loadmodule proxy_ajp_module modules/mod_proxy_ajp.so loadmodule proxy_module modules/mod_proxy.so proxypass /j_spring_security_check ajp://localhost:8009/j_spring_security_check proxypass /j_spring_security_logout ajp://localhost:8009/j_spring_security_logout
when use above working. problem is, not able refer second tomcat instance.
httpd.conf :configurations are
loadmodule jk_module modules/mod_jk.so jkworkersfile conf/workers.properties jkloglevel info jklogstampformat "[%a %b %d %h:%m:%s %y]" jklogfile logs/mod_jk.log jkmount /restservice/* lb jkmount /images/* lb <location /jkmanager/> jkmount jkstatus order deny,allow allow </location>
worker file :
worker.list=lb worker.worker1.port=8009 worker.worker1.host=localhost worker.worker1.type=ajp13 worker.worker2.port=8070 worker.worker2.host=localhost worker.worker2.type=ajp13 worker.lb.type=lb worker.lb.balance_workers=worker1,worker2 worker.list=jkstatus worker.jkstatus.type=status worker.loadbalancer.sticky_session=true
Comments
Post a Comment