S
S
Stanislav Fateev2013-11-23 14:03:34
Nginx
Stanislav Fateev, 2013-11-23 14:03:34

Setting up SSL nginx?

I set up the configuration described here I set up nginx as a proxy on the advice, everything works fine via http, but chrome gives ERR_CONNECTION_RESET via https.
In the logs on the proxy server, you can see that no "ssl_certificate" is defined in server listening on SSL port while SSL handshaking
I created and placed certificates only on VPS ( which is the proxy).
Config here:
server {
listen 443;
server_name example.com
ssl on;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
location / {
access_log off;
proxy_pass http://127.0.0.1:4431;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stanislav Fateev, 2013-11-23
@svfat

the problem was that ssl did not start normally on the server behind the proxy due to a crooked config

T
truekenny, 2013-11-23
@truekenny

proxy_pass: The port appears to be HTTPS, but the scheme is HTTP.
curl http://127.0.0.1:4431/opened on the server?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question