We are running two jetty containers in different host(Host-P, Host-Q). One of the container is deployed with few applications(App-A,App-B,App-C). Another container which is also having few applications(App-X,App-Y,App-Z).
Host-P => App-A,App-B,App-C Host-Q => App-X,App-Y,App-Z
myapp.test.com is the primary host accessible by web client. My web client is aware of the application which needs to invoke. I am passing this app type in URL param . The URL will be like
http://myapp.test.com/?=appType=App-A http://myapp.test.com/?=appType=App-B http://myapp.test.com/?=appType=App-Y http://myapp.test.com/?=appType=App-X
Where I need to configure the routing logic based on URL param. Can I have tomcat/nginx running in myapp.test.com host that will do only routing? Which configuration file I need to lookup?