From: Eric Covener Date: Mon, 28 Dec 2015 18:45:44 +0000 (+0000) Subject: Merge r1721978 from trunk: X-Git-Tag: 2.4.19~329 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49a2130ae6b8098f3469406a1a93b2cc37b8e3fa;p=apache Merge r1721978 from trunk: add a mod_headers condition clause expression example git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1721979 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/expr.xml b/docs/manual/expr.xml index 5267d99f40..8205bc7c12 100644 --- a/docs/manual/expr.xml +++ b/docs/manual/expr.xml @@ -581,6 +581,9 @@ 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 5a7dedb893..6d2e951e05 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