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:46:27 UTC
svn commit: r1727642 - /httpd/httpd/trunk/docs/manual/mod/mod_setenvif.xml
Author: jailletc36
Date: Fri Jan 29 21:46:27 2016
New Revision: 1727642
URL: http://svn.apache.org/viewvc?rev=1727642&view=rev
Log:
Take into account an old comment from Thomas.
Add an example using regex
Modified:
httpd/httpd/trunk/docs/manual/mod/mod_setenvif.xml
Modified: httpd/httpd/trunk/docs/manual/mod/mod_setenvif.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_setenvif.xml?rev=1727642&r1=1727641&r2=1727642&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_setenvif.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_setenvif.xml Fri Jan 29 21:46:27 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>. $0 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>