]> granicus.if.org Git - apache/commitdiff
xforms
authorEric Covener <covener@apache.org>
Wed, 26 Nov 2014 19:06:38 +0000 (19:06 +0000)
committerEric Covener <covener@apache.org>
Wed, 26 Nov 2014 19:06:38 +0000 (19:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1641891 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/expr.html.en

index 514b307c209b350c243fe84d629ca2db3cd974ca..e7babc488060e91525429edf24d4f01169ec4c6c 100644 (file)
@@ -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">