From 14a2e29bdda1f4fc5526c0d05c2ae1d02cefc642 Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Tue, 4 Apr 2000 13:27:02 +0000 Subject: [PATCH] Clarify the DOCUMENT_ROOT environment variable oddity. Suggested by: Scott Goodman git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84904 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/vhosts/mass.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/manual/vhosts/mass.html b/docs/manual/vhosts/mass.html index df56093680..e4caed86d6 100644 --- a/docs/manual/vhosts/mass.html +++ b/docs/manual/vhosts/mass.html @@ -122,13 +122,15 @@ instead.

The other thing to `fake' is the document root (configured with DocumentRoot and available to CGIs via the -DOCUMENT_ROOT environment variable). This setting -is used by the core module when mapping URIs to filenames, but -when the server is configured to do dynamic virtual hosting that -job is taken over by another module. If any CGIs or SSI documents -make use of the DOCUMENT_ROOT environment variable -they will therefore get a misleading value; there isn't any way to -change DOCUMENT_ROOT dynamically.

+DOCUMENT_ROOT environment variable). In a normal +configuration this setting is used by the core module when mapping +URIs to filenames, but when the server is configured to do dynamic +virtual hosting that job is taken over by another module (either +mod_vhost_alias or mod_rewrite) which has +a different way of doing the mapping. Neither of these modules is +responsible for setting the DOCUMENT_ROOT environment +variable so if any CGIs or SSI documents make use of it they will +get a misleading value.


Simple dynamic virtual hosts

-- 2.40.0