summaryrefslogtreecommitdiff
path: root/docs/manual/expr.html.en
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2014-11-26 19:06:38 +0000
committerEric Covener <covener@apache.org>2014-11-26 19:06:38 +0000
commitbc79360adc77ee889cb557f991fab847295ba7e6 (patch)
tree09dc28aee0620ec2980b4521330ef20c324ad846 /docs/manual/expr.html.en
parent10a8c35869f630a111afc6fe613f2a87eda9df7e (diff)
downloadhttpd-bc79360adc77ee889cb557f991fab847295ba7e6.tar.gz
xforms
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1641891 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/expr.html.en')
-rw-r--r--docs/manual/expr.html.en15
1 files changed, 14 insertions, 1 deletions
diff --git a/docs/manual/expr.html.en b/docs/manual/expr.html.en
index 514b307c20..e7babc4880 100644
--- a/docs/manual/expr.html.en
+++ b/docs/manual/expr.html.en
@@ -508,7 +508,20 @@ listfunction ::= listfuncname "<strong>(</strong>" word "<strong>)</strong>"</pr
# Check a HTTP header for a list of values
&lt;If "%{HTTP:X-example-header} in { 'foo', 'bar', 'baz'}"&gt;
Header set matched true
-&lt;/If&gt;</pre>
+&lt;/If&gt;
+
+# Check an environment variable for a regular expression, negated.
+&lt;If "! reqenv('REDIRECT_FOO') =~ /bar/"&gt;
+ Header set matched true
+&lt;/If&gt;
+
+# Check result of URI mapping by running in Directory context with -f
+&lt;Directory /var/www&gt;
+ AddEncoding x-gzip gz
+&lt;If "-f '%{REQUEST_FILENAME}.unzipme' &amp;&amp; ! %{HTTP:Accept-Encoding} =~ /gzip/"&gt;
+ SetOutputFilter INFLATE
+&lt;/If&gt;
+&lt;/Directory&gt;</pre>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">