Dave's Brain

Browse - computer tips - has sent an incorrect or unexpected message error code -12263

Date: 2008jan30

Q.  I setup SSL with Apache.
It looks OK but when I browse to my site with Firefox I get
"<hostname> has sent an incorrect or unexpected message. Error code -12263".
What's up?

A.  Your browser is talking SSL but your site isn't.  As proof try
going to port 443 (the SSL port) using a regular (unencrypted) connection:

	http://www.example.com:443
	(Replace www.example.com with the actual name of your host, of course)
	
You'll probably see your site fine.

The problem is this line in your /etc/httpd/conf.d/ssl.conf file:

	<VirtualHost _default_:443>

Its not acting as you would expect.  Instead its doing nothing.
So everything inside the <VirtualHost> is ignored!

Change it to the actual name of your host.

	<VirtualHost www.example.com:443>

And it'll work.

Add a comment

Sign in to add a comment
Copyright © 2008, dave - Code on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License.