httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53923] New: Overriding CustomLog directive seems impossible
Date Sun, 23 Sep 2012 16:13:25 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53923

          Priority: P2
            Bug ID: 53923
          Assignee: bugs@httpd.apache.org
           Summary: Overriding CustomLog directive seems impossible
          Severity: minor
    Classification: Unclassified
                OS: FreeBSD
          Reporter: jakobj@jakobj.dk
          Hardware: All
            Status: NEW
           Version: 2.2.22
         Component: mod_log_config
           Product: Apache httpd-2

My intentions are to create an installation of apache and configure it entirely
in an .conf file in the Includes directory. This went well, with one exception.
The CustomLog directive seems "unoverridable".

In the httpd.conf there is a line defining something like this:

  CustomLog "/var/log/httpd-access.log" combined

Changing that line to:

  SetEnvIf Request_URI ^/heartbeat dontlog
  CustomLog "/var/log/httpd-access.log" combined env=!dontlog

Will yield the effect I am after, however chancing that line to:

  CustomLog "/var/log/httpd-access.log" combined
  SetEnvIf Request_URI ^/heartbeat dontlog
  CustomLog "/var/log/httpd-access.log" combined env=!dontlog

Does not yield the effect I am after.

I conclude that the CustomLog directive cannot be overridden, which I expected
to be able to.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message