From 12e2cddbee7dcd8294cd25f52532b8c567d8dbcc Mon Sep 17 00:00:00 2001
From: Rich Bowen
Date: Wed, 5 Jan 2005 19:08:24 +0000
Subject: [PATCH] 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
---
docs/manual/mod/mod_log_config.html.en | 8 ++++++++
docs/manual/mod/mod_log_config.xml | 8 ++++++++
2 files changed, 16 insertions(+)
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
+
--
2.47.2