You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2015/12/28 19:45:44 UTC

svn commit: r1721979 - in /httpd/httpd/branches/2.4.x/docs/manual: expr.xml mod/mod_headers.xml

Author: covener
Date: Mon Dec 28 18:45:44 2015
New Revision: 1721979

URL: http://svn.apache.org/viewvc?rev=1721979&view=rev
Log:
Merge r1721978 from trunk:

add a mod_headers condition clause expression example


Modified:
    httpd/httpd/branches/2.4.x/docs/manual/expr.xml
    httpd/httpd/branches/2.4.x/docs/manual/mod/mod_headers.xml

Modified: httpd/httpd/branches/2.4.x/docs/manual/expr.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/expr.xml?rev=1721979&r1=1721978&r2=1721979&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/expr.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/expr.xml Mon Dec 28 18:45:44 2015
@@ -581,6 +581,9 @@ listfunction ::= listfuncname "<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>
 

Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_headers.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_headers.xml?rev=1721979&r1=1721978&r2=1721979&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_headers.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_headers.xml Mon Dec 28 18:45:44 2015
@@ -540,7 +540,12 @@ available in 2.4.10 and later</compatibi
     <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