httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r1641890 - /httpd/httpd/branches/2.4.x/docs/manual/expr.xml
Date Wed, 26 Nov 2014 19:05:53 GMT
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>



Mime
View raw message