Filling Up My Error Logs… Apache With GnuTLS Configuration File Tip

Because of the way Apache reads in configuration files, what’s at the bottom of the file is read first, IIRC.

My Apache logs had been seeing massive amounts of errors all day long, whenever Apache would attempt to dismiss one of it’s processes.

==> /var/log/apache2/access_log <==
default_vhost.v01.vps.ns1.net 209.151.240.48 209.151.240.48 - - [05/Sep/2009:22:30:13 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)" mod_deflate: In:- Out:-:-pct.
 
==> /var/log/apache2/v01.vps.ns1.net_error_log <==
[Sat Sep 05 22:00:36 2009] [error] [client 209.151.240.48] GnuTLS: Handshake Failed (-8) 'A record packet with illegal version was received.'
[Sat Sep 05 22:00:36 2009] [error] [client 209.151.240.48] Invalid method in request NS * HTTP/1.0

Here’s the configuration file tip.
Look in your file where you have the Listen and NameVirtualHost directives
Make sure the unencrypted ports are listed last, so they will be used first to dismiss the processes.

Listen 209.151.240.46:443
Listen 209.151.240.48:443
Listen 209.151.240.46:8080
Listen 209.151.240.48:8080
#Listen [2001:05c0:8fff:fffe:0000:0000:0000:29c3]:8080
#Listen [2001:05c0:8fff:fffe:0000:0000:0000:29c3]:443
 
# Use name-based virtual hosting.
#NameVirtualHost *:8080
NameVirtualHost *:443
NameVirtualHost *:8080