Is there any way to point multiple sub domains to single webapp in tomcat 7 ?
e.g.
admin.test.com
has already assigned to a webapp.
On the top of my head I can think about the following ways.
TOMCAT_HOME/webapps
. Actually this means that you will have 2 applications installed from the same code base. However if your application uses only DB to store state this is probably not a problem. There is a much easier way to do this:
<Host name="domain1.com" ...>
<Alias>www.domain1.com</Alias>
<Alias>domain1.net</Alias>
<Alias>www.domain1.net</Alias>
...
</Host>