httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1727644 - /httpd/httpd/branches/2.4.x/docs/manual/mod/mod_setenvif.xml
Date Fri, 29 Jan 2016 21:49:38 GMT
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>
 



Mime
View raw message