summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2023-05-15 13:35:56 +0000
committerEric Covener <covener@apache.org>2023-05-15 13:35:56 +0000
commit3da54a7f168484eb2e9c681f9ca59f9076cbb002 (patch)
treefdf48a2cb45bac524293c60e43a693748447364b
parent865b455ff75454a28b041755fbca9ebcab141d21 (diff)
downloadhttpd-3da54a7f168484eb2e9c681f9ca59f9076cbb002.tar.gz
a few tweaks to SetEnvIfExpr docHEADtrunk
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/trunk@1909833 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 4024c9ec78..99c302f3a3 100644
--- a/docs/manual/mod/mod_setenvif.xml
+++ b/docs/manual/mod/mod_setenvif.xml
@@ -276,13 +276,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>