You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2009/11/01 17:26:08 UTC

svn commit: r831696 - in /httpd/httpd/branches/2.2.x/docs/manual/mod: mod_env.html.en mod_env.xml

Author: covener
Date: Sun Nov  1 16:26:07 2009
New Revision: 831696

URL: http://svn.apache.org/viewvc?rev=831696&view=rev
Log:
document SetEnv "late" processing

Modified:
    httpd/httpd/branches/2.2.x/docs/manual/mod/mod_env.html.en
    httpd/httpd/branches/2.2.x/docs/manual/mod/mod_env.xml

Modified: httpd/httpd/branches/2.2.x/docs/manual/mod/mod_env.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/mod/mod_env.html.en?rev=831696&r1=831695&r2=831696&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/mod/mod_env.html.en (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/mod/mod_env.html.en Sun Nov  1 16:26:07 2009
@@ -87,6 +87,16 @@
       SetEnv SPECIAL_PATH /foo/bin
     </code></p></div>
 
+    <div class="note"><p>The internal environment variables set by this directive are set
+    <em>after</em> most early request processing directives are run, such as access
+    control and URI-to-filename mapping.  If the environment variable you're
+    setting is meant as input into this early phase of processing such as the
+    <code class="directive"><a href="../mod/mod_rerite.html#rewriterule">RewriteRule</a></code> directive, you should 
+    instead set the environment variable with
+    <code class="directive"><a href="../mod/mod_setenvif.html# setenvif"> SetEnvIf</a></code>.</p>
+    </div>
+     
+
 </div>
 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="directive-section"><h2><a name="UnsetEnv" id="UnsetEnv">UnsetEnv</a> <a name="unsetenv" id="unsetenv">Directive</a></h2>

Modified: httpd/httpd/branches/2.2.x/docs/manual/mod/mod_env.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/mod/mod_env.xml?rev=831696&r1=831695&r2=831696&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/mod/mod_env.xml (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/mod/mod_env.xml Sun Nov  1 16:26:07 2009
@@ -72,6 +72,16 @@
     <example><title>Example</title>
       SetEnv SPECIAL_PATH /foo/bin
     </example>
+
+    <note><p>The internal environment variables set by this directive are set
+    <em>after</em> most early request processing directives are run, such as access
+    control and URI-to-filename mapping.  If the environment variable you're
+    setting is meant as input into this early phase of processing such as the
+    <directive module="mod_rerite">RewriteRule</directive> directive, you should 
+    instead set the environment variable with
+    <directive module="mod_setenvif"> SetEnvIf</directive>.</p>
+    </note>
+     
 </usage>
 </directivesynopsis>