Today we had unique requirement of pointing 2 domains names to same tomcat instance with different web applications. Googled it for 5 mins and there were multiple answers to solve it. I should not forget it so writing in my blogbook.
Virtual hosting is a method for hosting multiple domain names (with separate handling of each name) on a single server (or pool of servers). This allows one server to share its resources, such as memory and processor cycles, without requiring all services provided to use the same host name. The term virtual hosting is usually used in reference to web servers but the principles carry over to other internet services.
Apache HTTP Option:
More Information : http://httpd.apache.org/docs/2.0/vhosts/examples.html
Tomcat Virtual Host:
More information: http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html
Comments
Post a Comment