Hi,
I am trying to configure mod_jk to forward requests to my webapp running in tomcat. ( I read else where that mod_proxy_ajp is the way to go but want to get this figured out first). I am new to tomcat and mod_jk.
I try to access -- http://www.example.com/test/index.jsp
I get a 400 error in my apache logs after I configured mod_jk. The webapp is working fine when I test it directly in tomcat. In the mod_jk log file I see that it is trying to map the A/index.jsp but its failing with a 400. So I see that the mod_jk is getting invoked but somehow modjk is not seeing the webapp.
Any help is greatly appreciated
I am on a SuSe Linux 11 and am running apache and tomcat on the same box.
My httpd.conf is a monolithic file. In it I added the following --
<IfModule jk_module>
Alias /test/ "/srv/tomcat6/webapps/A"
JkWorkersFile /usr/local/apache2/conf/workers.properties
JkShmFile /usr/local/apache2/logs/mod_jk.shm
JkLogFile /usr/local/apache2/logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JKMount /test/ A1
JkMount /test/* A1
JkOptions +ForwardSSLCertChain
</IfModule>
I have the following in the workers.properties --
#Define 1 real worker using ajp13
worker.list=A
#Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.ajp13.lbfactor=50
worker.ajp13.cachesize=10
worker.ajp13.cache_timeout=600
worker.ajp13.socket_keepalive=1
worker.ajp13.socket_timeout=300
Thanks, - Vas