I am developing a web application consisting of two independent parts - authentication and the real part of the application. Both parts of the WAR that are deployed to (currently) a single instance of Tomcat 7.
So, I have the following two WAR in my webapps folder:
webapps | +- BloggofantAuthentication | +- Bloggofant
so far they are available at http://127.0.0.1:8080/BloggofanAuthentication and http://127.0.0.1:8080/Bloggofant . Is it possible to proxy WAR in Tomcat directly (so I do not need to use Apache httpd and its mod_proxy module)? So in the end, a WAR on the server is achievable as follows:
http://127.0.0.1:8080/BloggofantAuthentication → http://127.0.0.1/bloggo/http://127.0.0.1:8080/Bloggofant → http://127.0.0.1/bloggo/fant/
Any suggestions on this topic are much appreciated;)
EDIT
The following are the context.xml files for the two unpacked WARUP folders for Webapp:
WebApps / BloggofantAuthentication / META-INF / context.xml
<?xml version="1.0" encoding="UTF-8"?> <Context path=""> <Manager pathname=""/> </Context>
WebApps / Bloggofant / META-INF / context.xml
<?xml version="1.0" encoding="UTF-8"?> <Context path="/bloggofant"> <Manager pathname=""/> </Context>
If now I want to access my applications through http://127.0.0.1:8080 or http://127.0.0.1:8080/Bloggofant , I get 404 error - Page not found ...
herom source share