From 9eed23b16425fe9a35826ec8357d81c3c3fbf0b2 Mon Sep 17 00:00:00 2001
From: Eric Covener
Date: Mon, 15 May 2023 13:39:04 +0000
Subject: 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
---
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 41e68ae8b6..a569e11f6d 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
--
cgit v1.2.1