You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dan Poirier <po...@pobox.com> on 2009/01/29 18:12:44 UTC

Better error message for SSL connection on non-SSL port

I've proposed a patch for trunk at

https://issues.apache.org/bugzilla/show_bug.cgi?id=46123

that spots an attempted SSL connection on a non-SSL port and gives a
more useful message than "Invalid method in request".  It looks to see
if the first couple of bytes look like an SSL handshake, and logs
instead "Invalid method in request %s - possible attempt to establish
SSL connection on non-SSL port".

I'm interested in comments - does this seem useful?  Is this the best
way to go about it?

Thanks.

-- 
Dan Poirier <po...@pobox.com>

Re: Better error message for SSL connection on non-SSL port

Posted by Eric Covener <co...@gmail.com>.
On Thu, Jan 29, 2009 at 12:12 PM, Dan Poirier <po...@pobox.com> wrote:
> I've proposed a patch for trunk at
>
> https://issues.apache.org/bugzilla/show_bug.cgi?id=46123
>
> that spots an attempted SSL connection on a non-SSL port and gives a
> more useful message than "Invalid method in request".  It looks to see
> if the first couple of bytes look like an SSL handshake, and logs
> instead "Invalid method in request %s - possible attempt to establish
> SSL connection on non-SSL port".

Committed to trunk, we see this FAQ a lot from Debian/Ubuntu users
with NameVirtualHost * / VirtualHost *.

-- 
Eric Covener
covener@gmail.com