We have Tomcat 5.5 running behind and Apache 2.2 mod_proxy. We would like prettier URLs. For example, this is more or less how our URLs look now:
http://example.com/foo/app/home (home page)
http://example.com/foo/app/bar (other parts of the web app)
http://example.com/foo/api/qux (API hooks)
http://example.com/foo/quux (misc)
We would like the publically exposed URLs to be simpler, e.g.:
http://example.com/ (home page)
http://example.com/bar (other parts of the web app)
http://example.com/api/qux (API hooks)
http://example.com/quux (misc)
I know how to have Apache rewrite the incoming URLs into the longer ones Tomcat uses, but I'm concerned that this might confuse Tomcat. I am reasonably experienced with Apache but a Tomcat newbie.
Also, we want to do this with rewriting, not redirects (e.g., http://example.com/ should not simply redirect to http://example.com/foo/app/home), as we want to keep the ugly URLs out of the address bar entirely.