From: Rich Bowen
Date: Wed, 5 Jan 2005 19:08:24 +0000 (+0000)
Subject: This has been coming up rather frequently on IRC, and it's a good
X-Git-Tag: 2.1.3~189
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12e2cddbee7dcd8294cd25f52532b8c567d8dbcc;p=thirdparty%2Fapache%2Fhttpd.git
This has been coming up rather frequently on IRC, and it's a good
example. It's alluded to in the SetEnvIf docs, but it's not a complete
example there.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@124246 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/mod_log_config.html.en b/docs/manual/mod/mod_log_config.html.en
index e72c1d4e498..89af06731c4 100644
--- a/docs/manual/mod/mod_log_config.html.en
+++ b/docs/manual/mod/mod_log_config.html.en
@@ -346,6 +346,14 @@
CustomLog nongif-requests.log common env=!gif-image
+ Or, to reproduce the behavior of the old RefererIgnore
+ directive, you might use the following:
+
+
+ SetEnvIf Referer example\.com localreferer
+ CustomLog referer.log referer env=!localreferer
+
+
diff --git a/docs/manual/mod/mod_log_config.xml b/docs/manual/mod/mod_log_config.xml
index f693737ae10..30e84730ab2 100644
--- a/docs/manual/mod/mod_log_config.xml
+++ b/docs/manual/mod/mod_log_config.xml
@@ -372,6 +372,14 @@
CustomLog gif-requests.log common env=gif-image
CustomLog nongif-requests.log common env=!gif-image
+
+
Or, to reproduce the behavior of the old RefererIgnore
+ directive, you might use the following:
+
+
+ SetEnvIf Referer example\.com localreferer
+ CustomLog referer.log referer env=!localreferer
+