LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Having problem with SSL config in Apache2 (https://www.linuxquestions.org/questions/linux-software-2/having-problem-with-ssl-config-in-apache2-493257/)

noone 10-17-2006 02:31 PM

Having problem with SSL config in Apache2
 
After trying to install Mandriva 2007 as an upgrade (which screwed up my system), I've gone back and done a clean install of Mandriva 2006.

My problem is with trying to get an SSL connection to my website. I can't get the SSL connection to work on my public internet connection, it will only work as localhost.

I've made sure that mod_ssl is installed and running. When I try to access my website via SSL from my public IP, it get an error message from Firefox that says "www.xxx.com has sent an incorrect or unexpected message. Error code: -12281". I've googled it and all I can find is that it's an Apache config error, but I can't figure out what I'm doing wrong.

Any help would be greatly appreicated!

Thanks...

trickykid 10-17-2006 04:16 PM

And you're not blocking port 443?

noone 10-17-2006 04:21 PM

No, both ports 80 and 443 are open.

trickykid 10-17-2006 04:23 PM

Quote:

Originally Posted by noone
No, both ports 80 and 443 are open.

What do you logs tell you? And does this happen with any other browser? Sounds more like a connection/browser type issue rather than an apache issue if it works locally using localhost.

noone 10-17-2006 04:34 PM

Unfortunately the logs don't show anything at all. Firefox is kind enough to return the error message I posted previously. Internet Explorer's error message is totally worthless.

When I googled the error message from Firefox, the best thing I could find was Apache was trying to process the SSL request through a non-secure port, ie port 80. So I think it's an Apache config issue.

trickykid 10-17-2006 05:05 PM

Quote:

Originally Posted by noone
Unfortunately the logs don't show anything at all. Firefox is kind enough to return the error message I posted previously. Internet Explorer's error message is totally worthless.

When I googled the error message from Firefox, the best thing I could find was Apache was trying to process the SSL request through a non-secure port, ie port 80. So I think it's an Apache config issue.

What's listening on your machine? Does it even show port 443 listening? How did you start apache? Did you start it with SSL support? You said it worked locally correct? Did you actually specify https and not http in your address?

netstat -lpn

noone 10-17-2006 08:27 PM

I got it figured out. I'm running with named virtual hosts, but I needed to set the NameVirtualHost from aaa.bbb.ccc.ddd to aaa.bbb.ccc.ddd:80.

This way, the SSL requests will go through the SSL default instead of the named virtual hosts.


All times are GMT -5. The time now is 07:19 AM.