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 2014/11/26 20:05:53 UTC

svn commit: r1641890 - /httpd/httpd/branches/2.4.x/docs/manual/expr.xml

Author: covener
Date: Wed Nov 26 19:05:53 2014
New Revision: 1641890

URL: http://svn.apache.org/r1641890
Log:
Merge r1641888 from trunk:

add a few more expresion examples to illustrate functions and -f 


Modified:
    httpd/httpd/branches/2.4.x/docs/manual/expr.xml

Modified: httpd/httpd/branches/2.4.x/docs/manual/expr.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/expr.xml?rev=1641890&r1=1641889&r2=1641890&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/expr.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/expr.xml Wed Nov 26 19:05:53 2014
@@ -556,6 +556,18 @@ listfunction ::= listfuncname "<strong>(
     Header set matched true
 &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;
 
 	</highlight>
 </section>