Commit bd4aba9d authored by Eric Covener's avatar Eric Covener
Browse files

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
parent a10f32ba
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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>

+6 −1
Original line number Diff line number Diff line
@@ -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