]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Rebuild HTML - adds the !VAR syntax for the [E] flag.
authorRich Bowen <rbowen@apache.org>
Wed, 16 Mar 2011 16:32:09 +0000 (16:32 +0000)
committerRich Bowen <rbowen@apache.org>
Wed, 16 Mar 2011 16:32:09 +0000 (16:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1082190 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/rewrite/rewrite_flags.html.en

index 467e79331dd767994957b6e18046f00885e8c354..1b4ce9327b657bbdb2700cf879491e9954c37b8c 100644 (file)
@@ -101,7 +101,39 @@ is run, thus unsetting what you have set. See <a href="../env.html">the
 Environment Variables document</a> for more details on how Environment
 variables work.</p>
 
-<p>The following example sets an evironment variable called 'image' to a
+<p>The full syntax for this flag is:</p>
+
+<div class="example"><p><code>
+[E=VAR:VAL]
+[E=!VAR]
+</code></p></div>
+
+<p><code>VAL</code> may contain backreferences (<code>$N</code> or
+<code>%N</code>) which will be expanded.</p>
+
+<p>Using the short form</p>
+
+<div class="example"><p><code>
+[E=VAR]
+</code></p></div>
+
+<p>you can set the environment variable named <code>VAR</code> to an
+empty value.</p>
+
+<p>The form</p>
+
+<div class="example"><p><code>
+[E=!VAR]
+</code></p></div>
+
+<p>allows to unset a previously set environment variable named
+<code>VAR</code>.</p>
+
+<p>Environment variables can then be used in a variety of
+contexts, including CGI programs, other RewriteRule directives, or
+CustomLog directives.</p>
+
+<p>The following example sets an environment variable called 'image' to a
 value of '1' if the requested URI is an image file. Then, that
 environment variable is used to exclude those requests from the access
 log.</p>