This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Name based virtual hosting uses the http host header?  RSS feed

 
William Barnes
Ranch Hand
Posts: 1048
2
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the book I am reading it details different ways of supporting virtual hosting. It claims that for name-based virtual hosting the http 1.1 host header value is used, than the context. I never understood that the http host header value was really used for any thing, and that it was always the context which was used.
What is anyone else's experience?
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prior to HTTP 1.1, the virtual host was determined by the target IP address. HTTP1.1 added header support so that more than one virtual host could respond at the same IP address.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!