From: Christophe Jaillet Date: Fri, 29 Jan 2016 21:49:37 +0000 (+0000) Subject: Take into account an old comment from Thomas. X-Git-Tag: 2.4.19~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9d76fe18034cf9b503469b543a67f688f1efb86;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/branches/2.4.x@1727644 13f79535-47bb-0310-9956-ffa450edef68 --- 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