Nginx - Upstream SSL - peer closed connection in SSL handshake

前端 未结 6 2035
失恋的感觉
失恋的感觉 2021-02-14 03:26

I am getting this error:

Error frontend: 502 Bad gateway

99.110.244:443

2017/09/28 13:03:51 [error] 34080#34080: *1062 peer closed

6条回答
  •  遇见更好的自我
    2021-02-14 04:04

    Change your upstream to use the IP

    upstream webshop_domain_be {
            server :443;
    }
    

    And then change your proxy_pass block to

    location / {
       proxy_ssl_session_reuse off;
       proxy_ssl_server_name "webshop.domain.be";
       proxy_pass $scheme://webshop_domain_be;
    }
    

    If the above doesn't work then add proxy_ssl_server_name on; also to the config

提交回复
热议问题