From 14a2e29bdda1f4fc5526c0d05c2ae1d02cefc642 Mon Sep 17 00:00:00 2001
From: Tony Finch
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.