From: Rich Bowen Date: Wed, 16 Mar 2011 16:32:09 +0000 (+0000) Subject: Rebuild HTML - adds the !VAR syntax for the [E] flag. X-Git-Tag: 2.2.18~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44f33dadc0e690c2b80284e4128a0b937a09890f;p=thirdparty%2Fapache%2Fhttpd.git Rebuild HTML - adds the !VAR syntax for the [E] flag. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1082190 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/rewrite_flags.html.en b/docs/manual/rewrite/rewrite_flags.html.en index 467e79331dd..1b4ce9327b6 100644 --- a/docs/manual/rewrite/rewrite_flags.html.en +++ b/docs/manual/rewrite/rewrite_flags.html.en @@ -101,7 +101,39 @@ is run, thus unsetting what you have set. See the Environment Variables document for more details on how Environment variables work.

-

The following example sets an evironment variable called 'image' to a +

The full syntax for this flag is:

+ +

+[E=VAR:VAL] +[E=!VAR] +

+ +

VAL may contain backreferences ($N or +%N) which will be expanded.

+ +

Using the short form

+ +

+[E=VAR] +

+ +

you can set the environment variable named VAR to an +empty value.

+ +

The form

+ +

+[E=!VAR] +

+ +

allows to unset a previously set environment variable named +VAR.

+ +

Environment variables can then be used in a variety of +contexts, including CGI programs, other RewriteRule directives, or +CustomLog directives.

+ +

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.