https://issues.apache.org/bugzilla/show_bug.cgi?id=53923

          Priority: P2
            Bug ID: 53923
          Assignee: [email protected]
           Summary: Overriding CustomLog directive seems impossible
          Severity: minor
    Classification: Unclassified
                OS: FreeBSD
          Reporter: [email protected]
          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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to