Bug#576572: apache2.2-common: please move CustomLog directive to a conf.d fragment
Package: apache2.2-common
Version: 2.2.15-2
Severity: minor
Somewhere between the etch and lenny versions of apache2, the following
code was added to /etc/apache2/apache2.conf:
# Define an access log for VirtualHosts that don't define their own logfile
CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log vhost_combined
This is a good idea for making sure everything is logged properly out of
the box, but it caused problems for some servers like ours where we have
tons and tons of virtual hosts and were already defining an equivalent
log directive, but with slightly different options and a different location.
Because this is in /etc/apache2/apache2.conf, there's no way to get rid of
it without changing that file, which then makes configuration handling on
upgrades harder. There isn't, so far as I can tell, any way to override
this directive later on, so we're stuck with an other_vhosts_access.log
file that we don't want and have to deal with to prevent it from getting
excessively large.
Could you please move this fragment into a conf.d fragment so that it can
be easily deleted by sites that have different logging requirements?
-- Package-specific info:
List of /etc/apache2/mods-enabled/*.load:
alias auth_basic auth_kerb authn_file authz_default authz_groupfile
authz_host authz_user autoindex cgi deflate dir env fastcgi mime
negotiation php5 python reqtimeout setenvif shib2 ssl status
webauth webauthldap webkdc
List of enabled php5 extensions:
pdo
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-trunk-686-bigmem (SMP w/4 CPU cores)
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.15-2 utility programs for webservers
ii apache2.2-bin 2.2.15-2 Apache HTTP Server common binary f
ii libmagic1 5.04-1 File type determination library us
ii lsb-base 3.2-23 Linux Standard Base 3.2 init scrip
ii mime-support 3.48-1 MIME files 'mime.types' & 'mailcap
ii perl 5.10.1-11 Larry Wall's Practical Extraction
ii procps 1:3.2.8-8 /proc file system utilities
Versions of packages apache2.2-common recommends:
ii ssl-cert 1.0.25 simple debconf wrapper for OpenSSL
Versions of packages apache2.2-common suggests:
pn apache2-doc <none> (no description available)
pn apache2-suexec | apache2-su <none> (no description available)
ii elinks [www-browser] 0.12~pre5-2 advanced text-mode WWW browser
ii iceweasel [www-browser] 3.5.8-1 Web browser based on Firefox
ii lynx-cur [www-browser] 2.8.8dev.2-1 Text-mode WWW Browser with NLS sup
ii w3m [www-browser] 0.5.2-4 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)
ii apache2-mpm-prefork 2.2.15-2 Apache HTTP Server - traditional n
pn apache2-mpm-worker <none> (no description available)
-- no debconf information
Reply to: