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 2014/12/05 14:41:05 UTC

svn commit: r1643277 - /httpd/httpd/trunk/docs/manual/mod/mod_headers.xml

Author: covener
Date: Fri Dec  5 13:41:05 2014
New Revision: 1643277

URL: http://svn.apache.org/r1643277
Log:
add some hints about using expressions in mod_headers


Modified:
    httpd/httpd/trunk/docs/manual/mod/mod_headers.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_headers.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_headers.xml?rev=1643277&r1=1643276&r2=1643277&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_headers.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_headers.xml Fri Dec  5 13:41:05 2014
@@ -503,6 +503,25 @@ available in 2.4.10 and later</compatibi
       more efficient than <code>%s</code>.</p>
     </note>
 
+    <note><title>Note on expression values</title>
+    <p> When the value parameter uses the <a href="../expr.html">ap_expr</a>
+    parser, some expression syntax will differ from examples that evaluate
+    <em>boolean</em> expressions such as &lt;If&gt;:
+    <ul>
+      <li>The starting point of the grammar is 'string' rather than 'expr'.</li>
+      <li>Function calls use the %{funcname:arg} syntax rather than 
+          funcname(arg).</li>
+      <li>Multi-argument functions are not currently accessible from this
+          starting point</li>
+      <li>Quote the entire parameter, such as 
+          <highlight language="config">
+        Header set foo-checksum "expr=%{md5:foo}"
+          </highlight>
+       </li>
+                   
+    </ul>
+    </p></note>
+
     <p>For <code>edit</code> there is both a <var>value</var> argument
     which is a <glossary ref="regex">regular expression</glossary>,
     and an additional <var>replacement</var> string. As of version 2.4.7