name-based.html revision 85939515009c2c78e391236bf825ded8609f6a1a
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
c7480644202e5451fbed448508ea29a25cffc99cTimo Sirainen<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
c7480644202e5451fbed448508ea29a25cffc99cTimo Sirainen BGCOLOR="#FFFFFF"
c7480644202e5451fbed448508ea29a25cffc99cTimo Sirainen TEXT="#000000"
c7480644202e5451fbed448508ea29a25cffc99cTimo Sirainen LINK="#0000FF"
c7480644202e5451fbed448508ea29a25cffc99cTimo Sirainen VLINK="#000080"
c7480644202e5451fbed448508ea29a25cffc99cTimo Sirainen ALINK="#FF0000"
c7480644202e5451fbed448508ea29a25cffc99cTimo Sirainen<!--#include virtual="header.html" -->
c7480644202e5451fbed448508ea29a25cffc99cTimo Sirainen<H1 ALIGN="CENTER">Apache name-based Virtual Host Support</H1>
c7480644202e5451fbed448508ea29a25cffc99cTimo Sirainen<A HREF="ip-based.html">IP-based Virtual Host Support</A>
7e0bb2b365cc38645313a3513fa79bd32d34b63cTimo Sirainen<P>While the approach with IP-based virtual hosts works very well,
7e0bb2b365cc38645313a3513fa79bd32d34b63cTimo Sirainenit is not the most elegant solution, because a dedicated IP address
c7480644202e5451fbed448508ea29a25cffc99cTimo Sirainenis needed for every virtual host and it is hard to implement on some
c7480644202e5451fbed448508ea29a25cffc99cTimo Sirainenmachines. The <CODE>HTTP/1.1</CODE> protocol contains a method for the
c7480644202e5451fbed448508ea29a25cffc99cTimo Sirainenserver to identify what name it is being addressed as. Apache 1.1 and
c7480644202e5451fbed448508ea29a25cffc99cTimo Sirainenlater support this approach as well as the traditional
1704aa6b56b6a97bab6e995bcf7170b0c6527291Timo SirainenIP-address-per-hostname method.</P>
c7480644202e5451fbed448508ea29a25cffc99cTimo Sirainen<P>The benefits of using the new name-based virtual host support is a
7e0bb2b365cc38645313a3513fa79bd32d34b63cTimo Sirainenpractically unlimited number of servers, ease of configuration and use, and
7e0bb2b365cc38645313a3513fa79bd32d34b63cTimo Sirainenrequires no additional hardware or software.
c7480644202e5451fbed448508ea29a25cffc99cTimo SirainenThe main disadvantage is that the client must support this part of the
c7480644202e5451fbed448508ea29a25cffc99cTimo Sirainenprotocol. The latest versions of most browsers do, but there are still
ServerName www.domain.tld
familiar with typing "www" or "www.foobar" then you will need to add
ServerName www.domain.tld
<!--#include virtual="footer.html" -->