]> granicus.if.org Git - apache/commitdiff
Added more env variables to the mod_cgi's documentation.
authorLuca Toscano <elukey@apache.org>
Wed, 27 Jan 2016 21:48:28 +0000 (21:48 +0000)
committerLuca Toscano <elukey@apache.org>
Wed, 27 Jan 2016 21:48:28 +0000 (21:48 +0000)
Bugs: 58305/58306

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1727201 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_cgi.html.en
docs/manual/mod/mod_cgi.xml

index e07aba715a84f643519c40981e84644227d0eacf..ddea09f1a65085cf5639a6819b7d4b0182a779ac 100644 (file)
     <p>This module also leverages the core functions 
        <a href="https://ci.apache.org/projects/httpd/trunk/doxygen/group__APACHE__CORE__SCRIPT.html#ga0e81f9571a8a73f5da0e89e1f46d34b1">ap_add_common_vars</a> and 
        <a href="https://ci.apache.org/projects/httpd/trunk/doxygen/group__APACHE__CORE__SCRIPT.html#ga6b975cd7ff27a338cb8752381a4cc14f">ap_add_cgi_vars</a> 
-       to add common CGI environment variables like <code>DOCUMENT_ROOT</code> 
-       (this one from the related <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> directive). 
-       For an exhaustive list please check the code in the appropriate httpd branch.  
+       to add environment variables like:</p> 
+       <dl>
+           <dt>DOCUMENT_ROOT</dt>
+
+           <dd>Set with the content of the related <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> directive.</dd>
+
+           <dt>SERVER_NAME</dt>
+
+           <dd>The fully qualified domain name related to the request.</dd>
+
+           <dt>SERVER_ADDR</dt>
+
+           <dd>The IP address of the Virtual Host serving the request.</dd>
+
+           <dt>SERVER_ADMIN</dt>
+
+           <dd>Set with the content of the related <code class="directive"><a href="../mod/core.html#serveradmin">ServerAdmin</a></code> directive.</dd>
+      </dl>
+    <p>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.
     </p>   
 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
index e7035c2f25c5951a15c50e3f848d566173047aad..aa7dd939437349a157c6c8897ba0b87c99651a91 100644 (file)
     <p>This module also leverages the core functions 
        <a href="https://ci.apache.org/projects/httpd/trunk/doxygen/group__APACHE__CORE__SCRIPT.html#ga0e81f9571a8a73f5da0e89e1f46d34b1">ap_add_common_vars</a> and 
        <a href="https://ci.apache.org/projects/httpd/trunk/doxygen/group__APACHE__CORE__SCRIPT.html#ga6b975cd7ff27a338cb8752381a4cc14f">ap_add_cgi_vars</a> 
-       to add common CGI environment variables like <code>DOCUMENT_ROOT</code> 
-       (this one from the related <directive module="core">DocumentRoot</directive> directive). 
-       For an exhaustive list please check the code in the appropriate httpd branch.  
+       to add environment variables like:</p> 
+       <dl>
+           <dt>DOCUMENT_ROOT</dt>
+
+           <dd>Set with the content of the related <directive module="core">DocumentRoot</directive> directive.</dd>
+
+           <dt>SERVER_NAME</dt>
+
+           <dd>The fully qualified domain name related to the request.</dd>
+
+           <dt>SERVER_ADDR</dt>
+
+           <dd>The IP address of the Virtual Host serving the request.</dd>
+
+           <dt>SERVER_ADMIN</dt>
+
+           <dd>Set with the content of the related <directive module="core">ServerAdmin</directive> directive.</dd>
+      </dl>
+    <p>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.
     </p>   
 </section>