Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
annamalai murugesan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
annamalai murugesan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, William.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic