You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Juan Vera <ju...@corest.com> on 2002/01/23 21:27:10 UTC

mod_log-any/9574: unexpected behaviour of CustomLog directive

>Number:         9574
>Category:       mod_log-any
>Synopsis:       unexpected behaviour of CustomLog directive
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Jan 23 12:30:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     juan@corest.com
>Release:        all?
>Organization:
apache
>Environment:
all
>Description:
When defining a customlog tag for use (on a global server or virtualhost)
if you forget to define that tag, logs will be filled with the name of the tag
and no warning is reported.
>How-To-Repeat:
change CustomLog on default httpd.conf for one like this

#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" user \
"%{SSL_CLIENT_S_DN_CN}x\""  combinedSSL
(note the '#' on the line above)
CustomLog /path/to/access_log combinedSSL

restart apache and do some requests, logs will be filled with the string 'combinedSSL' and nothing else.

>Fix:
at least report 'warning: CustomLog for xxx virtualhost doesn't have a correspondant LogFormat entry', at best parse CustomLog for '%something' constructions, and try to validate its format.
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]