Answer the question
In order to leave comments, you need to log in
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
the problem was that ssl did not start normally on the server behind the proxy due to a crooked config
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question