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
</If>
+# Check an environment variable for a regular expression, negated.
+<If "! reqenv('REDIRECT_FOO') =~ /bar/">
+ Header set matched true
+</If>
+
+# Check result of URI mapping by running in Directory context with -f
+<Directory /var/www>
+ AddEncoding x-gzip gz
+<If "-f '%{REQUEST_FILENAME}.unzipme' && ! %{HTTP:Accept-Encoding} =~ /gzip/">
+ SetOutputFilter INFLATE
+</If>
+</Directory>
</highlight>
</section>