]> granicus.if.org Git - apache/commitdiff
Merge r1643277 from trunk:
authorEric Covener <covener@apache.org>
Fri, 5 Dec 2014 13:41:31 +0000 (13:41 +0000)
committerEric Covener <covener@apache.org>
Fri, 5 Dec 2014 13:41:31 +0000 (13:41 +0000)
add some hints about using expressions in mod_headers

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1643278 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_headers.xml

index 2729a412b46ab381943ed4df2c2525e9905dcbbc..7979bab95cb7d3ab3bd8ccfe92750d603cf11b0f 100644 (file)
@@ -503,6 +503,25 @@ available in 2.4.10 and later</compatibility>
       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