From: Christophe Jaillet
Date: Fri, 29 Jan 2016 21:46:27 +0000 (+0000)
Subject: Take into account an old comment from Thomas.
X-Git-Tag: 2.5.0-alpha~2245
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=365ec3ce0d131ff8a7b73f253eca8e58805c959f;p=thirdparty%2Fapache%2Fhttpd.git
Take into account an old comment from Thomas.
Add an example using regex
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1727642 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/mod_setenvif.xml b/docs/manual/mod/mod_setenvif.xml
index 1b0d9ca7be0..7b40fcc184e 100644
--- a/docs/manual/mod/mod_setenvif.xml
+++ b/docs/manual/mod/mod_setenvif.xml
@@ -220,7 +220,8 @@ of
value. Since version 2.0.51, Apache httpd will
recognize occurrences of $1..$9 within
value and replace them by parenthesized subexpressions
- of regex.
+ of regex. $0 provides access to the whole string matched by
+ that pattern.
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