I have a Tomcat server with two webapps, app1 and app2 (the
app part is really the same). Each app has an independent group of users.
I would like the groups to be able to access their respective app using
group2.domain.com/app URLs, meaning that the numbers should be hidden from the URL displayed in browser. I suppose there needs to be a mechanism that would return the correct app based on the
group# part of the URL.
I have a vague understanding of URL rewrites. Is there a way to do this with only Tomcat? Or do I need Apache HTTP server? I would rather not use Apache if possible, but have no problem going that way if necessary.