From: Eric Covener Date: Wed, 26 Nov 2014 19:05:12 +0000 (+0000) Subject: add a few more expresion examples to illustrate functions and -f X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71fd830f3d383d491aa34fd09b725f0cf9bc638d;p=thirdparty%2Fapache%2Fhttpd.git add a few more expresion examples to illustrate functions and -f git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1641888 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/expr.xml b/docs/manual/expr.xml index 5bb6f5ee240..e386ff51acb 100644 --- a/docs/manual/expr.xml +++ b/docs/manual/expr.xml @@ -580,6 +580,18 @@ listfunction ::= listfuncname "(" word ")" 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>