From: Eric Covener
Date: Mon, 15 May 2023 13:35:56 +0000 (+0000)
Subject: a few tweaks to SetEnvIfExpr doc
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3da54a7f168484eb2e9c681f9ca59f9076cbb002;p=thirdparty%2Fapache%2Fhttpd.git
a few tweaks to SetEnvIfExpr doc
From a question on IRC, show a backreference example.
Fix a bad copy/paste where a link to was present.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909833 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/mod_setenvif.xml b/docs/manual/mod/mod_setenvif.xml
index 4024c9ec786..99c302f3a39 100644
--- a/docs/manual/mod/mod_setenvif.xml
+++ b/docs/manual/mod/mod_setenvif.xml
@@ -276,13 +276,14 @@ for additional examples.
The SetEnvIfExpr directive defines
- environment variables based on an If
- ap_expr
. These expressions will be evaluated at runtime,
+ environment variables based on an expression.
+ These expressions will be evaluated at runtime,
and applied env-variable in the same fashion as SetEnvIf.
+ >SetEnvIf, including backreferences.
SetEnvIfExpr "tolower(req('X-Sendfile')) == 'd:\images\very_big.iso')" iso_delivered
+ SetEnvIfExpr "tolower(req('X-Sendfile')) =~ /(.*\.iso$)/" iso-path=$1
This would set the environment variable iso_delivered