Commit 614bcf55 authored by Christophe Jaillet's avatar Christophe Jaillet
Browse files

Take into account an old comment from Thomas.

Add an example using regex

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1727644 13f79535-47bb-0310-9956-ffa450edef68
parent eacc3b6d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -220,7 +220,8 @@ of</p>
    <code><em>value</em></code>. Since version 2.0.51, Apache httpd will
    recognize occurrences of <code>$1</code>..<code>$9</code> within
    <var>value</var> and replace them by parenthesized subexpressions
    of <var>regex</var>.</p>
    of <var>regex</var>. <code>$0</code> provides access to the whole
    string matched by that pattern.</p>

<highlight language="config">
SetEnvIf Request_URI "\.gif$" object_is_image=gif
@@ -231,6 +232,8 @@ SetEnvIf Referer www\.mydomain\.example\.com intra_site_referral
    
SetEnvIf object_is_image xbm XBIT_PROCESSING=1
    
SetEnvIf Request_URI "\.(.*)$" EXTENSION=$1

SetEnvIf ^TS  ^[a-z]  HAVE_TS
</highlight>