From 3da54a7f168484eb2e9c681f9ca59f9076cbb002 Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Mon, 15 May 2023 13:35:56 +0000 Subject: 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 --- docs/manual/mod/mod_setenvif.xml | 7 ++++--- 1 file 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.

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 -- cgit v1.2.1