httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56517] New: Virtualhosts cannot inherit parent CustomLog
Date Mon, 12 May 2014 20:25:17 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56517

            Bug ID: 56517
           Summary: Virtualhosts cannot inherit parent CustomLog
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Keywords: PatchAvailable
          Severity: enhancement
          Priority: P2
         Component: mod_log_config
          Assignee: bugs@httpd.apache.org
          Reporter: Chaosed0@gmail.com

Created attachment 31612
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31612&action=edit
Add GlobalLog directive

A virtualhost can specify its own CustomLog directives, but when this is done,
the vhost no longer uses the parent CustomLog directives. From a comment in the
source, this was apparently done purposefully. However, it seems that there
should be some mechanism for allowing virtualhosts to inherit the CustomLog of
the parent configuration.

At first, I tried to add another optional parameter to CustomLog, but it turned
out to be somewhat more complicated than I'd anticipated; CustomLog already has
an optional parameter, and the AP_INIT_TAKE macros only go up to 3 parameters.
As an alternative, the patch attached introduces a new directive, GlobalLog,
which is essentially equivalent to CustomLog except that all child virtualhosts
also inherit the log.

-- 
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