From 365ec3ce0d131ff8a7b73f253eca8e58805c959f Mon Sep 17 00:00:00 2001
From: Christophe Jaillet
Date: Fri, 29 Jan 2016 21:46:27 +0000
Subject: [PATCH] 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
---
docs/manual/mod/mod_setenvif.xml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/docs/manual/mod/mod_setenvif.xml b/docs/manual/mod/mod_setenvif.xml
index 1b0d9ca7be..7b40fcc184 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
--
2.50.1