nginx代理其他https网站报错SSL: error:14094410

有时候因为网络问题,我们会对目标访问的网站url进行nginx代理

常规代理后,请求时,nginx有时候会报这样的错:

SSL_do_handshake() failed (SSL: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:SSL alert number 40) while SSL handshaking to upstream

这个表示SSLv3握手失败

解决办法:

在nginx代理配置中添加

proxy_ssl_server_name on;

proxy_ssl_session_reuse off;

修改后配置

#代理的某网站

location /api/ {
proxy_pass  https://xxx.com/;
proxy_ssl_server_name on;    #新添加
proxy_ssl_session_reuse off;  #新添加
}

 

分享一下
版权声明:管理员 发表于 2024-09-02 11:40:35。
转载请注明:nginx代理其他https网站报错SSL: error:14094410 | 我的导航基地

暂无评论

暂无评论...