From: Luca Toscano Date: Wed, 27 Jan 2016 21:48:28 +0000 (+0000) Subject: Added more env variables to the mod_cgi's documentation. X-Git-Tag: 2.5.0-alpha~2260 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=565cfcba1ae025cb64fa9bd33d18a9e1b9e98e9f;p=apache Added more env variables to the mod_cgi's documentation. Bugs: 58305/58306 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1727201 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_cgi.html.en b/docs/manual/mod/mod_cgi.html.en index e07aba715a..ddea09f1a6 100644 --- a/docs/manual/mod/mod_cgi.html.en +++ b/docs/manual/mod/mod_cgi.html.en @@ -120,9 +120,26 @@

This module also leverages the core functions ap_add_common_vars and ap_add_cgi_vars - to add common CGI environment variables like DOCUMENT_ROOT - (this one from the related DocumentRoot directive). - For an exhaustive list please check the code in the appropriate httpd branch. + 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.

top
diff --git a/docs/manual/mod/mod_cgi.xml b/docs/manual/mod/mod_cgi.xml index e7035c2f25..aa7dd93943 100644 --- a/docs/manual/mod/mod_cgi.xml +++ b/docs/manual/mod/mod_cgi.xml @@ -105,9 +105,26 @@

This module also leverages the core functions ap_add_common_vars and ap_add_cgi_vars - to add common CGI environment variables like DOCUMENT_ROOT - (this one from the related DocumentRoot directive). - For an exhaustive list please check the code in the appropriate httpd branch. + 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.