This the configuration of my server. I have domain1(domain1.com) and domain2(domain2.com), Domain3 (domain3.com) Domain1.com hosts tomcatapp1, tomcatapp2 Domain2.com hosts tomcatapp1, tomcatapp2, tomcatapp3. Domain2.com hosts tomcatapp4, tomcatapp5, tomcatapp6, tomcatapp1.
This could also include subdomains. Subdomain1.Domain1.com (tomcatapp4, tomcatapp5, tomcatapp6, tomcatapp1)
All the domains are on single IP with the port 80 for Apache and 8080 for tomcat. Question is how do I achieve this ?
I started with VirtualHosts on Apache where each domain is pointing to a directory (in this case it is Domain1.com, Domain2.com). But I got stuck when I wanted to introduce the multiple apps in each of the domains.
Appreciate if somebody could suggest or point to a proper documentation discussing this aspect.