You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Noor Dawod <no...@comrax.com> on 1999/12/15 16:50:29 UTC
mod_log-any/5476: Apache doesn't recognize %m and %H (possibly others) directives in httpd.conf
>Number: 5476
>Category: mod_log-any
>Synopsis: Apache doesn't recognize %m and %H (possibly others) directives in httpd.conf
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Wed Dec 15 09:10:01 PST 1999
>Last-Modified:
>Originator: noor@comrax.com
>Organization:
apache
>Release: 1.3.9
>Environment:
FreeBSD dns.comrax.com 3.3-STABLE FreeBSD 3.3-STABLE #4: Tue Sep 28 23:08:40 IST 1999 root@dns.comrax.com:/usr/src/sys/compile/WWW i386
Reading specs from /usr/local/lib/gcc-lib/i386-portbld-freebsd3.3/2.95.1/specs
gcc version 2.95.1 19990816 (release)
>Description:
When trying to create a new LogFormat, such as the following:
LogFormat "%h %l %u %t \"%m %U %H\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" my_log_format
Apache doesn't recognize both %m and %H, this is the output of apachectl configtest:
Syntax error on line 474 of /www/etc/httpd.conf:
Unrecognized LogFormat directive %m
Also, it produces an error on %H when %m is deleted (to see if %H is also unknown) as the following:
Syntax error on line 474 of /www/etc/httpd.conf:
Unrecognized LogFormat directive %H
>How-To-Repeat:
Insert the following line near the line that defines the "combined" LogFormat:
LogFormat "%h %l %u %t \"%m %U %H\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" my_log_format
Then, do:
apachectl configtest
OR
apachectl restart
>Fix:
No, I didn't look at the source code of Apache, yet.
>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! ]