From 550d8e8e6ccef95a119bc265101792b0475a7aa0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 15:42:57 +0200 Subject: Adding upstream version 2.4.59. Signed-off-by: Daniel Baumann --- docs/manual/mod/mod_setenvif.html.en | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'docs/manual/mod/mod_setenvif.html.en') diff --git a/docs/manual/mod/mod_setenvif.html.en b/docs/manual/mod/mod_setenvif.html.en index ac335b0..0e930e6 100644 --- a/docs/manual/mod/mod_setenvif.html.en +++ b/docs/manual/mod/mod_setenvif.html.en @@ -274,11 +274,12 @@ for additional examples. Module:mod_setenvif

The SetEnvIfExpr directive defines - environment variables based on an <If> - ap_expr. These expressions will be evaluated at runtime, - and applied env-variable in the same fashion as SetEnvIf.

+ environment variables based on an expression. + These expressions will be evaluated at runtime, + and applied env-variable in the same fashion as SetEnvIf, including backreferences.

-
SetEnvIfExpr "tolower(req('X-Sendfile')) == 'd:\images\very_big.iso')" iso_delivered
+
    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 @@ -352,7 +353,7 @@ var comments_identifier = 'http://httpd.apache.org/docs/2.4/mod/mod_setenvif.htm } })(window, document); //-->