From: Eric Covener Date: Wed, 1 Oct 2014 12:40:58 +0000 (+0000) Subject: reword/reorg/simplify based on recent feedback. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aea0a0e9b4d88d57fa8f336424f6fe88ce4a3398;p=thirdparty%2Fapache%2Fhttpd.git reword/reorg/simplify based on recent feedback. - don't worry about how multiple IP addresses map - simplify the description of why you might use an IP address in Running several name-based web sites on a single IP address. -

Your server has a single IP address, and multiple aliases (CNAMES) - point to this machine in DNS. You want to run a web server for - www.example.com and www.example.org on this - machine.

+

Your server has multiple hostnames that resolve to a single address, + and you want to respond differently for www.example.com + and www.example.org.

Note

Creating virtual host configurations on your Apache server does not magically @@ -80,12 +79,18 @@ Listen 80 ServerName directives, it will be served by this first VirtualHost.

+

The above configuration is what you will want to use in almost + all name-based virtual hosting situations. The only thing that this + configuration will not work for, in fact, is when you are serving + different content based on differing IP addresses or ports.

+ Note -

You can, if you wish, replace * with the actual - IP address of the system, when you don't care to discriminate based - on the IP address or port.

+

You may replace * with a specific IP address + on the system. Such virtual hosts will only be used for + HTTP requests received on connection to the specified IP + address.

However, it is additionally useful to use * on systems where the IP address is not predictable - for @@ -95,12 +100,6 @@ Listen 80 would work without changes whenever your IP address changes.

- -

The above configuration is what you will want to use in almost - all name-based virtual hosting situations. The only thing that this - configuration will not work for, in fact, is when you are serving - different content based on differing IP addresses or ports.

-
Name-based hosts on more than one