| Summary: | LogFormat must be <IFModule>'ed in httpd.conf | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Konstantin A Lepikhov (L.A. Kostis) <lakostis> |
| Component: | apache | Assignee: | Michael Shigorin <mike> |
| Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
| Severity: | enhancement | ||
| Priority: | P2 | CC: | at, cas, crux, ender, lakostis, ldv, mike, mithraen, qa_viy, rider, shaba, solo, viy |
| Version: | unstable | Keywords: | relnote |
| Hardware: | all | ||
| OS: | Linux | ||
implemented in 1.3.37rusPL30.23-alt1 more complete fix in apache-1.3.41rusPL30.23-alt4:
<IfModule mod_log_config.c>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%a %l %u %t \"%r\" %>s %b" common-quick
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
<IfModule mod_deflate.c>
LogFormat "%a %l %u %t \"%r\" %>s %b \"%{defl_m}n:%{defl_r}n\""
common-deflate
</IfModule>
#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here. Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
CustomLog /var/log/httpd/access_log common-quick
</IfModule>
|
suggested /etc/httpd/conf/httpd.conf config example: # # The following directives define some format nicknames for use with # a CustomLog directive (see below). # <IfModule mod_log_config.c> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%a %l %u %t \"%r\" %>s %b" common-quick LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent <IfModule mod_deflate.c> LogFormat "%a %l %u %t \"%r\" %>s %b \"%{defl_m}n:%{defl_r}n\"" common-deflate </IfModule> </IFModule> It's ease configuration behavior when mod_log_config.c is disabled (i.e backed configuration with external log service).