From b9d76fe18034cf9b503469b543a67f688f1efb86 Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Fri, 29 Jan 2016 21:49:37 +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/branches/2.4.x@1727644 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 2276091a2a4..0c75149d1c7 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.47.3