From: Daniel Earl Poirier As the term IP-based indicates, the server
- must have a different IP address for each IP-based
+ must have a different IP address/port combination for each IP-based
virtual host. This can be achieved by the machine
having several physical network connections, or by use of
virtual interfaces which are supported by most modern operating
systems (see system documentation for details, these are
frequently called "ip aliases", and the "ifconfig" command is
- most commonly used to set them up).
In many cases, name-based + virtual hosts are more convenient, because they allow + many virtual hosts to share a single address/port. + See Name-based vs. IP-based + Virtual Hosts to help you decide. +
diff --git a/docs/manual/vhosts/name-based.xml b/docs/manual/vhosts/name-based.xml index e3453b0722e..3d1b40a66ad 100644 --- a/docs/manual/vhosts/name-based.xml +++ b/docs/manual/vhosts/name-based.xml @@ -35,9 +35,11 @@IP-based virtual hosts use the IP address of the connection to +
IP-based virtual hosts use the IP address of the connection to determine the correct virtual host to serve. Therefore you need to - have a separate IP address for each host. With name-based virtual + have a separate IP address for each host.
+ +With name-based virtual hosting, the server relies on the client to report the hostname as part of the HTTP headers. Using this technique, many different hosts can share the same IP address.
@@ -52,7 +54,8 @@ using IP-based virtual hosting:To use name-based virtual hosting, you must designate the IP
address (and possibly port) on the server that will be accepting
- requests for the hosts. This is configured using the *
as the argument to *:80
. Note that mentioning an IP address in a
+ such as *:80
.
Note that mentioning an IP address in a
The next step is to create a