summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2023-05-15 13:39:04 +0000
committerEric Covener <covener@apache.org>2023-05-15 13:39:04 +0000
commit9eed23b16425fe9a35826ec8357d81c3c3fbf0b2 (patch)
tree22f0d915cd3a132eaa82f3e105b35614fe8e9465
parentdf1eb4f677b67b8f15d56e9217d2bf045ce8b220 (diff)
downloadhttpd-2.4.x.tar.gz
Merge r1909833 from trunk:2.4.x
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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1909834 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--docs/manual/mod/mod_setenvif.xml7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/manual/mod/mod_setenvif.xml b/docs/manual/mod/mod_setenvif.xml
index 41e68ae8b6..a569e11f6d 100644
--- a/docs/manual/mod/mod_setenvif.xml
+++ b/docs/manual/mod/mod_setenvif.xml
@@ -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>