Commit f2861b29 authored by Richard Bowen's avatar Richard Bowen
Browse files

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/branches/2.0.x@124244 13f79535-47bb-0310-9956-ffa450edef68
parent 0ef1a03c
Loading
Loading
Loading
Loading
+8 −0
Changes for docs/manual/mod/mod_log_config.html.en: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -347,6 +347,14 @@
      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>
+8 −0
Changes for docs/manual/mod/mod_log_config.xml: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -373,6 +373,14 @@
      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>