I want to make a webapp running in a tomcat available under multiple contexts.
http://localhost:8080/foo
should also be available under
http://localhost:8080/bar
but I do not want to have a second web application (e.g. by duplicating the war file or symlinking)
Is there a way to create such an alias inside tomcat or do I have to use mod_rewrite in apache2? (I already use mod_jk)
I never get such constructions working with links or duplicate the context configuration in tomcat. It produces internal errors in the webapp.
But you can use a ajp proxy in apache http configuration. This can provide the original context unter a new entry.
In my case unfortunately the webapps create links to the original context. So after some clicks the user step back to the original context again.