This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Basically, I am a developer and recently assumed the responsibility of WebSphere administrator. And want to know about the virtual host being created in WebSphere App Server. I am not able to visualise the use/necessity of creating virtual host in WebSphere. Can any one help me understand the reason/rationale behind creating the virtual host? From developers' perspective, context root is important to access the application. Thanks in advance. Regards, Murugesan
The term Virtual Host refers to the practice of maintaining more than one server on one machine, as differentiated by their apparent hostname. For example, it is often desirable for companies sharing a web server to have their own domains, with web servers accessible as www.company1.com and www.company2.com, without requiring the user to know any extra path information as u would have to do using a context root.
Joined: Jul 28, 2003
Thanks, Marcos. My earlier understanding is that for each domain name, an IP Address has to be registered with the ISP. If we can have two domain name for the same host, how is the IP address resolved by the ISP? My understanding is that the two domain names - www.company1.com and www.company2.com, are meaningful to the local host and may be to the local network/local DNS server. If a user access the site www.company1.com from another part of the globe, how is the IP routing takes place? The flow? Or, If I want to have two domain names, do i need to register the same IP addresse for the domain names with the ISP still, so that the DNS server will handle the proper routing accordingly? I may NOT be correct in my understanding. Please do advise on where i am wrong. Thanks for your time. Regards, Murugesan
The two IPs would have to be resolved in the DNS to point to one particular machine. The virtual hosts (company1_host and company2_host for example) are what tells the web server which application to go to and where(i.e. the document root of each application).
No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?