From: Eric Covener Date: Mon, 28 Dec 2015 18:44:03 +0000 (+0000) Subject: add a mod_headers condition clause expression example X-Git-Tag: 2.5.0-alpha~2492 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6cc3f9ab9f0c094644d2af79d2bdfd72ae88561;p=thirdparty%2Fapache%2Fhttpd.git add a mod_headers condition clause expression example git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1721978 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/expr.xml b/docs/manual/expr.xml index 8dd44f200f7..84c619a3c4d 100644 --- a/docs/manual/expr.xml +++ b/docs/manual/expr.xml @@ -616,6 +616,10 @@ listfunction ::= listfuncname "(" word ")" # Function example in string context Header set foo-checksum "expr=%{md5:foo}" + +# This delays the evaluation of the condition clause compared to <If> +Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path.php$#" + diff --git a/docs/manual/mod/mod_headers.xml b/docs/manual/mod/mod_headers.xml index 5be4520836b..1eebd61af6a 100644 --- a/docs/manual/mod/mod_headers.xml +++ b/docs/manual/mod/mod_headers.xml @@ -540,7 +540,12 @@ available in 2.4.10 and later
expr=expression
The directive is applied if and only if expression evaluates to true. Details of expression syntax and evaluation are - documented in the ap_expr documentation.
+ documented in the ap_expr documentation. + + # This delays the evaluation of the condition clause compared to <If> + Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path.php$#" + +

Except in early mode, the