Question

I have 2 subdomains for my domain: "www" and "hosting". I made 2 WAR applications: one for the "www" site, and another for the "hosting" site. Is there any way I can configure Tomcat 7 to route subdomains to web applications?

Was it helpful?

Solution

Reverse Proxy set up would enable finer control over how the HTTP requests are handled and directed. You would configure the proxy for each of the subdomains to point to the proper applications.
I use nginx as a reverse proxy in front of my Tomcat webservers.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top