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

About the Author

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

rob friedman Has Written 1003 Articles For Us!

This is about me. There are a lot of things i dislike, and like. I write about stuff that is on my mind. If you don't like it don't read it. If something doesn't make sense to you then look it up, or ask. If it sounds ridiculous, it is. If you wish to make a comment, please do. By the way, I still could use some gainful employment. Are you willing to hire a legal medical cannabis patient? I also have a twitter account. twitter.com/px
Getting The Latest Tweet...
gdlogo Filling Up My Error Logs... Apache With GnuTLS Configuration File Tip Did you know rob has a website? Go see what you're missing...