From 50be469769ff9e765a064c9a0501444cd44993a7 Mon Sep 17 00:00:00 2001 From: Joshua Slive Date: Thu, 30 May 2002 13:18:54 +0000 Subject: [PATCH] Too many people seem to try to use _default_ with name-virtual hosts. Maybe this will help? git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95401 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/core.html.en | 24 +++++++++++++++++------- docs/manual/mod/core.xml | 27 +++++++++++++++++++-------- 2 files changed, 36 insertions(+), 15 deletions(-) diff --git a/docs/manual/mod/core.html.en b/docs/manual/mod/core.html.en index 0454e128a3..e51f544fae 100644 --- a/docs/manual/mod/core.html.en +++ b/docs/manual/mod/core.html.en @@ -1692,18 +1692,24 @@ hostname or IP addressContext:server configStatus:CoreModule:core

<VirtualHost> and </VirtualHost> are used to enclose a group of - directives which will apply only to a particular virtual host. Any - directive which is allowed in a virtual host context may be + directives that will apply only to a particular virtual host. Any + directive that is allowed in a virtual host context may be used. When the server receives a request for a document on a particular virtual host, it uses the configuration directives enclosed in the <VirtualHost> section. Addr can be

@@ -1738,14 +1744,18 @@ hostname or IP addressVIF (for SunOS(TM) 4.1.x)).

+ your OS supports it).

-

The special name _default_ can be specified in +

When using IP-based virtual hosting, the special name + _default_ can be specified in which case this virtual host will match any IP address that is not explicitly listed in another virtual host. In the absence of any _default_ virtual host the "main" server config, consisting of all those definitions outside any VirtualHost - section, is used when no match occurs.

+ section, is used when no IP-match occurs. (But note that any IP + address that matches a NameVirtualHost directive will never use + the "main" server config. See the name-based virtual hosting + documentation for further details.)

You can specify a :port to change the port that is matched. If unspecified then it defaults to the same port as the diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml index 50a82e06f2..3d6ca8130d 100644 --- a/docs/manual/mod/core.xml +++ b/docs/manual/mod/core.xml @@ -2456,18 +2456,24 @@ hostname or IP address

VirtualHost and </VirtualHost> are used to enclose a group of - directives which will apply only to a particular virtual host. Any - directive which is allowed in a virtual host context may be + directives that will apply only to a particular virtual host. Any + directive that is allowed in a virtual host context may be used. When the server receives a request for a document on a particular virtual host, it uses the configuration directives enclosed in the VirtualHost section. Addr can be

@@ -2502,15 +2508,20 @@ hostname or IP address accept IP packets for multiple addresses. (If the machine does not have multiple network interfaces, then this can be accomplished with the ifconfig alias command (if - your OS supports it), or with kernel patches like VIF (for SunOS(TM) 4.1.x)).

+ your OS supports it).

-

The special name _default_ can be specified in +

When using IP-based virtual hosting, the special name + _default_ can be specified in which case this virtual host will match any IP address that is not explicitly listed in another virtual host. In the absence of any _default_ virtual host the "main" server config, consisting of all those definitions outside any VirtualHost - section, is used when no match occurs.

+ section, is used when no IP-match occurs. (But note that any IP + address that matches a NameVirtualHost directive will never use + the "main" server config. See the name-based virtual hosting + documentation for further details.)

You can specify a :port to change the port that is matched. If unspecified then it defaults to the same port as the -- 2.40.0