From: Tony Finch Date: Tue, 4 Apr 2000 13:27:02 +0000 (+0000) Subject: Clarify the DOCUMENT_ROOT environment variable oddity. X-Git-Tag: apache-doc-split-01~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14a2e29bdda1f4fc5526c0d05c2ae1d02cefc642;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/docs/manual/vhosts/mass.html b/docs/manual/vhosts/mass.html index df560936808..e4caed86d6e 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