slive 01/02/27 13:35:14
Modified: htdocs/manual/mod mod_rewrite.html Log: A little detail on some of the mod_rewrite variables. Submitted by: Miguel Cruz <[EMAIL PROTECTED]> Revision Changes Path 1.56 +37 -4 httpd-docs-1.3/htdocs/manual/mod/mod_rewrite.html Index: mod_rewrite.html =================================================================== RCS file: /home/cvs/httpd-docs-1.3/htdocs/manual/mod/mod_rewrite.html,v retrieving revision 1.55 retrieving revision 1.56 diff -u -d -b -u -r1.55 -r1.56 --- mod_rewrite.html 2001/01/11 21:29:00 1.55 +++ mod_rewrite.html 2001/02/27 21:35:13 1.56 @@ -1137,9 +1137,42 @@ <P> <TABLE WIDTH="70%" BORDER=0 BGCOLOR="#E0E0F0" CELLSPACING=0 CELLPADDING=10> <TR><TD> -<STRONG>Notice:</STRONG> These variables all correspond to the similarly named -HTTP MIME-headers, C variables of the Apache server or <CODE>struct tm</CODE> -fields of the Unix system. + +<p><STRONG>Notice:</STRONG> These variables all correspond to +the similarly named HTTP MIME-headers, C variables of the Apache +server or <CODE>struct tm</CODE> fields of the Unix system. Most +are documented elsewhere in the Manual or in the CGI specification. +Those that are special to mod_rewrite include:</p> + +<dl> +<dt><code>IS_SUBREQ</code></dt> +<dd>Will contain the text "true" if the request currently +being processed is a sub-request, "false" otherwise. Sub-requests may +be generated by modules that need to resolve additional files or URIs +in order to complete their tasks.</dd> + +<dt><code>API_VERSION</code></dt> +<dd>This is the version of the Apache module API (the internal +interface between server and module) in the current httpd build, as +defined in include/ap_mmn.h. The module API version corresponds to the +version of Apache in use (in the release version of Apache 1.3.14, for +instance, it is 19990320:10), but is mainly of interest to module +authors.</dd> + +<dt><code>THE_REQUEST</code></dt> +<dd>The full HTTP request line sent by the browser to the server +(e.g., "<code>GET /index.html HTTP/1.1</code>"). This does not include +any additional headers sent by the browser.</dd> + +<dt><code>REQUEST_URI</code></dt> +<dd>The resource requested in the HTTP request line. (In the +example above, this would be "/index.html".)</dd> + +<dt><code>REQUEST_FILENAME</code></dt> +<dd>The full local filesystem path to the file or script +matching the request.</dd> +</dl> + </TD></TR> </TABLE>