I have a WAR application running in Tomcat in context /foo, which means its URL http://example.com:8080/foo. Now I am trying to connect Apache HTTP Server to Tomcat via mod_jk . This is my workers.propertiesfile:
worker.list=foo
worker.foo.port=8009
worker.foo.host=localhost
worker.foo.type=ajp13
worker.foo.mount=/foo/*
It works fine, but on the URL-address: http://example.com/foo. I wish he was in http://example.com. What am I missing?
ps. This is mine mod-jk.conf, which is included in 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>
source
share