reverse proxy an apache who forces ssl

Reinis Rozitis r at
Tue Jul 17 17:29:39 UTC 2012

> 2012/07/17 18:40:05 [error] 5043#0: *1 SSL_do_handshake() failed (SSL:
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol)
while SSL handshaking to upstream, client:, server:, request: "GET / HTTP/1.1", upstream:
"", host: ""

> in my log. What am I doing wrong?

The error is kinda saying that the upstream is not talking SSL (or vice 
versa if I'm wrong).

Can you show what does this return ( change the to your backend 
apache ip/host if its not the real one from the error message):

openssl s_client -connect

It will either return the SSL cert information (then the backend is fine and 
the problem is on nginx side) or the same error.


More information about the nginx mailing list