I have a number of applications running in Tomcat. Every one has its own context. I hooked them all to different domain names with Apache HTTP Server and mod_jk
(see more details at this question: How to mount context-referenced Tomcat application with mod_jk?). Works fine, but when applications generate their web pages all URLs still have their contexts:
http://www.example.com/
goes tohttp://www.example.com:8080/my-context/
http://www.example.com:8080/my-context/
produces a web page- The web page contains URL
/my-context/some-page.jsf
I would like to see /some-page.jsf
in the third step. What's important to notice is that I can't change application internals. They are provided by third parties. All I can do is to configure Tomcat or Apache HTTP Server.