]> granicus.if.org Git - apache/commitdiff
Merge r1721978 from trunk:
authorEric Covener <covener@apache.org>
Mon, 28 Dec 2015 18:45:44 +0000 (18:45 +0000)
committerEric Covener <covener@apache.org>
Mon, 28 Dec 2015 18:45:44 +0000 (18:45 +0000)
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

docs/manual/expr.xml
docs/manual/mod/mod_headers.xml

index 5267d99f408eb777ddd0c4a858a02dd501b949d7..8205bc7c120b7526a8131b0bef52e853b0be510c 100644 (file)
@@ -581,6 +581,9 @@ listfunction ::= listfuncname "<strong>(</strong>" word "<strong>)</strong>"
 # Function example in string context
 Header set foo-checksum "expr=%{md5:foo}"
 
+# This delays the evaluation of the condition clause compared to &lt;If&gt;
+Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path.php$#"
+
        </highlight>
 </section>
 
index 5a7dedb89332b2985246b2923cab80b3809af69a..6d2e951e0576a587da3ea3903055ed5bfb0090d4 100644 (file)
@@ -540,7 +540,12 @@ available in 2.4.10 and later</compatibility>
     <dt><code>expr=<var>expression</var></code></dt>
     <dd>The directive is applied if and only if <var>expression</var>
         evaluates to true. Details of expression syntax and evaluation are
-        documented in the <a href="../expr.html">ap_expr</a> documentation.</dd>
+        documented in the <a href="../expr.html">ap_expr</a> documentation.
+        <example>
+         # This delays the evaluation of the condition clause compared to &lt;If&gt;
+         Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path.php$#"
+        </example>   
+        </dd>
     </dl>
 
     <p>Except in <a href="#early">early</a> mode, the