opscode/cookbooks — pull request #246 by gravitystorm (2011-11-22 19:11:48+00:00)
Title: Add the vhost_combined LogFormat

On Ubuntu systems (and perhaps others) there is a config file to set the default logformat for virtual hosts, as part of the apache common package

$ dpkg -S /etc/apache2/conf.d/other-vhosts-access-log
apache2.2-common: /etc/apache2/conf.d/other-vhosts-access-log

$ cat /etc/apache2/conf.d/other-vhosts-access-log
# Define an access log for VirtualHosts that don't define their own logfile
CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log vhost_combined

However, that logformat is missing from the template apache2.conf file in this cookbook. I've just copied the directive from a fresh ubuntu apache2.conf file.