New to web servers. This may be a spring MVC question rather than tomcat, I'm not sure.
I understand I can map multiple domains to a single ip address using DNS. I have read some stuff on how to set up multiple virtual hosts on the same host (ip address) on tomcat which requests can be diverted to depending on which domain name was used to make the request.
Alternatively I am wondering about not having multiple virtual hosts (which I am guessing would be more useful if there was significant difference between between the sites) but have a single site which has a single layout structure etc but serves up specifically tailored content from a selected content store BASED on the domain used to make the request.
Is this anything to do with tomcat or do I have to some how tell which domain was used when the http session is begun and set which content at that point using spring MVC. Perhaps the (first) request / session includes the domain used and I so need to access that programatically?
Is there a reason for this situation that I should not do things the way I suggest? but should use multiple "identical duplicate" web sites (virtual hosts) apart from each of which being hard coded to access a specific content store?
Thanks for any help. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org