You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2023/05/15 13:39:04 UTC

svn commit: r1909834 - in /httpd/httpd/branches/2.4.x: ./ docs/manual/mod/mod_setenvif.xml

Author: covener
Date: Mon May 15 13:39:04 2023
New Revision: 1909834

URL: http://svn.apache.org/viewvc?rev=1909834&view=rev
Log:
Merge r1909833 from trunk:

a few tweaks to SetEnvIfExpr doc

From a question on IRC, show a backreference example.
Fix a bad copy/paste where a link to <if> was present.



Modified:
    httpd/httpd/branches/2.4.x/   (props changed)
    httpd/httpd/branches/2.4.x/docs/manual/mod/mod_setenvif.xml

Propchange: httpd/httpd/branches/2.4.x/
------------------------------------------------------------------------------
  Merged /httpd/httpd/trunk:r1909833

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=1909834&r1=1909833&r2=1909834&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 Mon May 15 13:39:04 2023
@@ -269,13 +269,14 @@ for additional examples.
 
 <usage>
     <p>The <directive>SetEnvIfExpr</directive> directive defines
-    environment variables based on an <directive module="core" type="section">If</directive>
-    <code>ap_expr</code>. These expressions will be evaluated at runtime,
+    environment variables based on an <a href="../expr.html">expression</a>.
+    These expressions will be evaluated at runtime,
     and applied <em>env-variable</em> in the same fashion as <directive
-    >SetEnvIf</directive>.</p>
+    >SetEnvIf</directive>, including backreferences.</p>
 
 <highlight language="config">
     SetEnvIfExpr "tolower(req('X-Sendfile')) == 'd:\images\very_big.iso')" iso_delivered
+    SetEnvIfExpr "tolower(req('X-Sendfile')) =~ /(.*\.iso$)/" iso-path=$1
 </highlight>
 
     <p>This would set the environment variable <code>iso_delivered</code>