From: Ken Coar Date: Tue, 21 Oct 1997 01:10:27 +0000 (+0000) Subject: {Sigh} Add the suddenly FAQ about why virtual hosts don't X-Git-Tag: APACHE_1_3b3~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bcfb6eb2d4fa72d2ed27ff84ea794435858f7ef;p=thirdparty%2Fapache%2Fhttpd.git {Sigh} Add the suddenly FAQ about why virtual hosts don't work after 1.3b2 upgrades.. PR: Too many to mention git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@79420 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/misc/FAQ.html b/docs/manual/misc/FAQ.html index 50e66a17433..eae5eaa38f4 100644 --- a/docs/manual/misc/FAQ.html +++ b/docs/manual/misc/FAQ.html @@ -15,7 +15,7 @@

Apache Server Frequently Asked Questions

- $Revision: 1.89 $ ($Date: 1997/09/18 13:00:15 $) + $Revision: 1.90 $ ($Date: 1997/10/21 01:10:27 $)

The latest version of this FAQ is always available from the main @@ -254,6 +254,9 @@

  • Is Apache Year 2000 compliant?
  • +
  • I upgraded to Apache 1.3b2 and now my + virtual hosts don't work! +
  • @@ -2103,6 +2106,48 @@


    +
  • + I upgraded to Apache 1.3b2 and now my virtual hosts don't + work! + +

    + In versions of Apache prior to 1.3b2, there was a lot of confusion + regarding address-based virtual hosts and (HTTP/1.1) name-based + virtual hosts, and the rules concerning how the server processed + <VirtualHost> definitions were very complex and not + well documented. +

    +

    + Apache 1.3b2 introduced a new directive, + NameVirtualHost, + which simplifies the rules quite a bit. However, changing the rules + like this means that your existing name-based + <VirtualHost> containers probably won't work + correctly immediately following the upgrade. +

    +

    + To correct this problem, add the following line to the beginning of + your server configuration file, before defining any virtual hosts: +

    +
    +
    NameVirtualHost n.n.n.n +
    +
    +

    + Replace the "n.n.n.n" with the IP address to + which the name-based virtual host names resolve; if you have multiple + name-based hosts on multiple addresses, repeat the directive for each + address. +

    +

    + Make sure that your name-based <VirtualHost> blocks + contain ServerName and possibly ServerAlias + directives so Apache can be sure to tell them apart correctly. +

    +
    +