You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2016/01/29 22:49:38 UTC
svn commit: r1727644 -
/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_setenvif.xml
Author: jailletc36
Date: Fri Jan 29 21:49:37 2016
New Revision: 1727644
URL: http://svn.apache.org/viewvc?rev=1727644&view=rev
Log:
Take into account an old comment from Thomas.
Add an example using regex
Modified:
httpd/httpd/branches/2.4.x/docs/manual/mod/mod_setenvif.xml
Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_setenvif.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_setenvif.xml?rev=1727644&r1=1727643&r2=1727644&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_setenvif.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_setenvif.xml Fri Jan 29 21:49:37 2016
@@ -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\
SetEnvIf object_is_image xbm XBIT_PROCESSING=1
+SetEnvIf Request_URI "\.(.*)$" EXTENSION=$1
+
SetEnvIf ^TS ^[a-z] HAVE_TS
</highlight>