From 1c109a844ae782a7a33c0ff623d1982bba2219f0 Mon Sep 17 00:00:00 2001
From: Ken Coar
The SetEnvIf directive defines environment variables @@ -299,15 +300,34 @@ Host, User-Agent, and Referer.
+ If the attribute name doesn't match any of the special keywords,
+ nor any of the request's header field names, it is tested as the name
+ of an environment variable in the list of those associated with the request.
+ This allows SetEnvIf
directives to test against the result
+ of prior matches.
+
+ Only those environment variables defined by earlier
+ SetEnvIf[NoCase]
directives are available for testing in
+ this manner. 'Earlier' means that they were defined at a broader scope
+ (such as server-wide) or previously in the current directive's
+ scope.
+
+ Example:
- SetEnvIf Request_URI "\.(gif)|(jpg)|(xbm)$" object_is_image + SetEnvIf Request_URI "\.gif$" object_is_image=gif + SetEnvIf Request_URI "\.jpg$" object_is_image=jpg + SetEnvIf Request_URI "\.xbm$" object_is_image=xbm + : SetEnvIf Referer www\.mydomain\.com intra_site_referral + : + SetEnvIf object_is_image xbm XBIT_PROCESSING=1
- The first will set the envariable object_is_image if the - request was for an image file, and the second sets + The first three will set the envariable object_is_image if the + request was for an image file, and the fourth sets intra_site_referral if the referring page was somewhere on the www.mydomain.com Web site.
-- 2.47.2