[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#679522: apache2.2-common: Apache Common and Combined definition Vs. documentation disparity



Package: apache2.2-common
Version: 2.2.16-6+squeeze7
Severity: normal

Using the default apache install the common and combined log format definitions
differ from both the vanilla apache documentation and the documentation
provided in the apache2-doc package in the file:
/usr/share/doc/apache2-doc/manual/en/logs.html

The vanilla apache documentation, the documentation in the apache2-doc package
and the config file in the vanilla apache2.2.22 source package define the
combined and common log file formats respectively as follows:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common

The file /etc/apache2/apache2.conf included in the Debian apache2.2-common
package defines the combined and common log file formats respectively as
follows:
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
The difference between them being that where in the vanilla version we have
‘%b’ whilst in the apache2.2-common version we have ’%O’. Whilst the
data they return is similar they are not the same.

>From my point of view the two logical ways to deal with this issue are
1. Change the /etc/apache2/apache2.conf file in the apache2.2.-common package
from the ‘%O’ flag to the ‘%b’ flag. This will then match the
documentation on the apache site, the documentation in the apache2-doc and the
vanilla apache configuration.
2. Change the name of the log file definitions in the configuration file (e.g.
from common and combined to common-debian and combined-debian) to stop
confusion with the different but identically named formats in the apache
vanilla documentation.
Change the documentation provided in the apache2-doc packed to reflect this
change.
Note for the purposes of this bug report ‘vanilla apache’ means from the
httpd.apache.org site and nothing to do with the Debian distribution.

Note: I originally noticed this issue on Ubuntu but have reproduced it on
Debian. The Ubuntu bug management team indicated that I should report the issue
here as it is reproduceable upstream on Debian. The link to the Ubutu bug
report is: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1018024



-- Package-specific info:
List of enabled modules from 'apache2 -M':
  alias auth_basic authn_file authz_default authz_groupfile
  authz_host authz_user autoindex cgid deflate dir env mime
  negotiation reqtimeout setenvif status

-- System Information:
Debian Release: 6.0.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apache2.2-common depends on:
ii  apache2-utils          2.2.16-6+squeeze7 utility programs for webservers
ii  apache2.2-bin          2.2.16-6+squeeze7 Apache HTTP Server common binary f
ii  libmagic1              5.04-5+squeeze2   File type determination library us
ii  lsb-base               3.2-23.2squeeze1  Linux Standard Base 3.2 init scrip
ii  mime-support           3.48-1            MIME files 'mime.types' & 'mailcap
ii  perl                   5.10.1-17squeeze3 Larry Wall's Practical Extraction 
ii  procps                 1:3.2.8-9squeeze1 /proc file system utilities

Versions of packages apache2.2-common recommends:
ii  ssl-cert                      1.0.28     simple debconf wrapper for OpenSSL

Versions of packages apache2.2-common suggests:
ii  apache2-doc            2.2.16-6+squeeze7 Apache HTTP Server documentation
pn  apache2-suexec | apach <none>            (no description available)
ii  epiphany-browser [www- 2.30.6-1          Intuitive GNOME web browser
ii  iceweasel [www-browser 3.5.16-16         Web browser based on Firefox
ii  w3m [www-browser]      0.5.2-9           WWW browsable pager with excellent

Versions of packages apache2.2-common is related to:
pn  apache2-mpm-event      <none>            (no description available)
pn  apache2-mpm-itk        <none>            (no description available)
pn  apache2-mpm-prefork    <none>            (no description available)
ii  apache2-mpm-worker     2.2.16-6+squeeze7 Apache HTTP Server - high speed th

-- no debconf information



Reply to: