I have an WAR application running in Tomcat at /foo
context, meaning that its URL is http://example.com:8080/foo
. Now I'm trying to connect Apache HTTP Server to Tomcat through mod_jk. This is my workers.properties
file:
worker.list=foo
worker.foo.port=8009
worker.foo.host=localhost
worker.foo.type=ajp13
worker.foo.mount=/foo/*
Works fine, but at this URL: http://example.com/foo
. I would like it to be at http://example.com
. What am I missing?
ps. This is my mod-jk.conf
, which is included into httpd.conf
:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /usr/local/tomcat/conf/workers.properties
<VirtualHost *:80>
ServerName foo.example.com
JkMount /* foo
</VirtualHost>
RewriteRule
usage in this particular case? – Headlock