From 52733e3bc55b2e2a3e33d9e1c1907e50acb848ea Mon Sep 17 00:00:00 2001
From: dgaudet
Date: Sun, 15 Mar 1998 21:39:50 +0000
Subject: [PATCH] - The "merging" optimization in mod_setenvif did not deal
with SetEnvIfNoCase properly; and it used strcmp() to compare header
names when it should use strcasecmp().
- Change the merging optimization so that it only considers the most
recent setenvif for merging. This means that mod_setenvif will
consider all directives in the order they appear in the config file.
- Document that mod_setenvif considers directives in the order they
appear, and give an example use.
- Perform more comparisons at compile-time in order to speed up things
at compile-time.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@80545 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/mod/mod_setenvif.html | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/docs/manual/mod/mod_setenvif.html b/docs/manual/mod/mod_setenvif.html
index cb80be0e38..46a91d5db8 100644
--- a/docs/manual/mod/mod_setenvif.html
+++ b/docs/manual/mod/mod_setenvif.html
@@ -26,6 +26,16 @@
regular expressions you specify. These envariables can be used by
other parts of the server to make decisions about actions to be taken.
+ The directives are considered in the order they appear in the
+ configuration files. So more complex sequences can be used, such
+ as this example, which sets netscape
if the browser
+ is mozilla but not MSIE.
+
+ BrowserMatch ^Mozilla netscape
+ BrowserMatch MSIE !netscape
+
+
+
Directives