Meaning of apache2 CONTEXT_DOCUMENT_ROOT and CONTEXT_PREFIX?
问题 How are the Apache2 (2.4) CGI environment variables CONTEXT_DOCUMENT_ROOT and CONTEXT_PREFIX defined? From experimentation, I've determined the following: CONTEXT_DOCUMENT_ROOT appears to be the full local path to the original request when DirectoryIndex or ErrorDocument call a CGI script. CONTEXT_PREFIX appears to be the original REQUEST_URI , sans any query part, when DirectoryIndex or ErrorDocument have called a CGI script. (In these cases, REQUEST_URI is set to the URI of the CGI script,