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:24:59 UTC
svn commit: r831695 - in /httpd/httpd/trunk/docs/manual/mod: mod_env.html.en
mod_env.xml
Author: covener
Date: Sun Nov 1 16:24:59 2009
New Revision: 831695
URL: http://svn.apache.org/viewvc?rev=831695&view=rev
Log:
address FAQ of SetEnv environment variables not being available to early
directives such as RewriteRule.
Modified:
httpd/httpd/trunk/docs/manual/mod/mod_env.html.en
httpd/httpd/trunk/docs/manual/mod/mod_env.xml
Modified: httpd/httpd/trunk/docs/manual/mod/mod_env.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_env.html.en?rev=831695&r1=831694&r2=831695&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_env.html.en (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_env.html.en Sun Nov 1 16:24:59 2009
@@ -88,6 +88,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/trunk/docs/manual/mod/mod_env.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_env.xml?rev=831695&r1=831694&r2=831695&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_env.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_env.xml Sun Nov 1 16:24:59 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>