You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2014/05/12 22:25:17 UTC

[Bug 56517] New: Virtualhosts cannot inherit parent CustomLog

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


[Bug 56517] Virtualhosts cannot inherit parent CustomLog

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56517

Yann Ylavic <yl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Yann Ylavic <yl...@gmail.com> ---
Why override CustomLog in the vhost at first?
All httpd's vhost directives are based on this override logic, why would it be
different for CustomLog?

If you want the vhost to use the parent's CustomLog, simply don't declare one
for it.

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


[Bug 56517] Virtualhosts cannot inherit parent CustomLog

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56517

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from Eric Covener <co...@gmail.com> ---
I expressed the requirement off-line to Ed.

I often I want to give a user a copy/pasteable logging directive with all sorts
of custom formats early during problem determination.  It would be handy if
they could append it to their configuration and have it used for all of their
responses, rather than having them update N+1 contexts with n+1 filenames or
determine what vhost is having the problem [and hope the problem is not related
to vhosts]

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


[Bug 56517] Virtualhosts cannot inherit parent CustomLog

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56517

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk

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