From: Eric Covener Date: Mon, 15 May 2023 13:39:04 +0000 (+0000) Subject: Merge r1909833 from trunk: X-Git-Tag: 2.4.58-rc1-candidate~139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9eed23b16425fe9a35826ec8357d81c3c3fbf0b2;p=thirdparty%2Fapache%2Fhttpd.git 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 was present. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1909834 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_setenvif.xml b/docs/manual/mod/mod_setenvif.xml index 41e68ae8b6b..a569e11f6d5 100644 --- a/docs/manual/mod/mod_setenvif.xml +++ b/docs/manual/mod/mod_setenvif.xml @@ -269,13 +269,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