GeeCON Prague 2014*
The moose likes Websphere and the fly likes Reason behind creating virtual host in WebSphere Application Server??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Websphere
Bookmark "Reason behind creating virtual host in WebSphere Application Server???" Watch "Reason behind creating virtual host in WebSphere Application Server???" New topic
Author

Reason behind creating virtual host in WebSphere Application Server???

annamalai murugesan
Greenhorn

Joined: Jul 28, 2003
Posts: 18
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
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
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.
annamalai murugesan
Greenhorn

Joined: Jul 28, 2003
Posts: 18
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
Scott Duncan
Ranch Hand

Joined: Nov 01, 2002
Posts: 363
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?
annamalai murugesan
Greenhorn

Joined: Jul 28, 2003
Posts: 18
Thanks, William.
 
GeeCON Prague 2014
 
subject: Reason behind creating virtual host in WebSphere Application Server???