From: Luca Toscano Date: Fri, 5 Feb 2016 07:57:59 +0000 (+0000) Subject: Change backported from trunk: Adding more details about environment variables passed... X-Git-Tag: 2.2.32~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=566c4f23a98726df9e88a2e259672d624943eb08;p=thirdparty%2Fapache%2Fhttpd.git Change backported from trunk: Adding more details about environment variables passed to cgi scripts. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1728613 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_cgi.xml b/docs/manual/mod/mod_cgi.xml index d2428c10831..801e7c4a50c 100644 --- a/docs/manual/mod/mod_cgi.xml +++ b/docs/manual/mod/mod_cgi.xml @@ -104,7 +104,32 @@
This will only be set if the CGI script is subject to authentication.
+ +

This module also leverages the core functions + ap_add_common_vars and + ap_add_cgi_vars + to add environment variables like:

+
+
DOCUMENT_ROOT
+ +
Set with the content of the related DocumentRoot directive.
+ +
SERVER_NAME
+ +
The fully qualified domain name related to the request.
+ +
SERVER_ADDR
+ +
The IP address of the Virtual Host serving the request.
+ +
SERVER_ADMIN
+ +
Set with the content of the related ServerAdmin directive.
+
+

For an exhaustive list it is suggested to write a basic CGI script + that dumps all the environment variables passed by Apache in a convenient format. +

CGI Debugging