From 10a8c35869f630a111afc6fe613f2a87eda9df7e Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Wed, 26 Nov 2014 19:05:53 +0000 Subject: [PATCH] Merge r1641888 from trunk: add a few more expresion examples to illustrate functions and -f git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1641890 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/expr.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/manual/expr.xml b/docs/manual/expr.xml index 8364b0f8bc..1f225ca89e 100644 --- a/docs/manual/expr.xml +++ b/docs/manual/expr.xml @@ -556,6 +556,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> -- 2.40.0