I'm using Apache version 2.2.22 and every page view is getting logged twice: 123.123.123.123 - user [29/May/2012:10:00:22 -0600] "GET /test.html HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0" 123.123.123.123 - user [29/May/2012:10:00:22 -0600] "GET /test.html HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0" It isn't actually getting requested twice (if I request a PHP file that logs something to a text file using log_error it only logs it there once, same with using the PHP mail command, I only get one email), it's just showing up in the log files twice. If I load a page that has a bunch of images, JS, CSS, etc, each item gets logged twice. Has anyone ever seen this before? Any ideas? Below is the output from httpd -V: Server version: Apache/2.2.22 (Unix) Server built: May 21 2012 22:25:31 Cpanel::Easy::Apache v3.13.1 rev9999 Server's Module Magic Number: 20051115:30 Server loaded: APR 1.4.5, APR-Util 1.4.1 Compiled using: APR 1.4.5, APR-Util 1.4.1 Architecture: 64-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT="/usr/local/apache" -D SUEXEC_BIN="/usr/local/apache/bin/suexec" -D DEFAULT_PIDLOG="logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="logs/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" Thanks, Metzen
This can be caused if you have two 'CustomLog' lines in your Apache configuration file. One in the main configuration and the second one inside your VirtualHost directives.