Redirect URL to a Tomcat webapp
Posted
by
phs
on Server Fault
See other posts from Server Fault
or by phs
Published on 2014-06-06T08:18:44Z
Indexed on
2014/06/06
9:27 UTC
Read the original article
Hit count: 165
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 group1.domain.com/app
and 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.
© Server Fault or respective owner