]> granicus.if.org Git - apache/commitdiff
This has been coming up rather frequently on IRC, and it's a good
authorRich Bowen <rbowen@apache.org>
Wed, 5 Jan 2005 19:08:24 +0000 (19:08 +0000)
committerRich Bowen <rbowen@apache.org>
Wed, 5 Jan 2005 19:08:24 +0000 (19:08 +0000)
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
docs/manual/mod/mod_log_config.xml

index e72c1d4e4985b419b9aeaceeb58070896e53a3d1..89af06731c41982d31156b6321be0c233dead900 100644 (file)
       CustomLog nongif-requests.log common env=!gif-image
     </code></p></div>
 
+    <p>Or, to reproduce the behavior of the old RefererIgnore
+    directive, you might use the following:</p>
+
+    <div class="example"><p><code>
+    SetEnvIf Referer example\.com localreferer<br />
+    CustomLog referer.log referer env=!localreferer
+    </code></p></div>
+
 </div>
 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="directive-section"><h2><a name="LogFormat" id="LogFormat">LogFormat</a> <a name="logformat" id="logformat">Directive</a></h2>
index f693737ae10e02a91fe4209813889180b857fdc4..30e84730ab277d6360b72a7048aa8b4bae3818ce 100644 (file)
       CustomLog gif-requests.log common env=gif-image<br />
       CustomLog nongif-requests.log common env=!gif-image
     </example>
+
+    <p>Or, to reproduce the behavior of the old RefererIgnore
+    directive, you might use the following:</p>
+
+    <example>
+    SetEnvIf Referer example\.com localreferer<br />
+    CustomLog referer.log referer env=!localreferer
+    </example>
 </usage>
 </directivesynopsis>