nginx upstream timed out 10060
错误信息:upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while SSL handshaking to upstream, client: 127.0.0.1, server: _, request: "POST /routerAndPhoneInfo/ HTTP/1.1", upstream: "https://127.0.0.1:8083/routerAndPhoneInfo/", host: "127.0.0.1:8081", referrer: "https://127.0.0.1:8081/"
这是我的配置
upstream backs { server 127.0.0.1:8083 max_fails=5;
server 127.0.0.1:8084 max_fails=5;
server 127.0.0.1:8085 max_fails=5;
server 127.0.0.1:8087 max_fails=5;
server 127.0.0.1:8089 max_fails=5;
keepalive 256; # 配置长链接
}
server {
listen 8081 ssl;
client_max_body_size 1024M;
# CA证书对应的域名
server_name _;
keepalive_timeout 60;
# 服务器证书绝对路径
ssl_certificate ssl_file/server.crt;
# 服务器端证书key绝对路径
ssl_certificate_key ssl_file/server.key;
ssl_verify_client off;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
location / {
# index ../html/index.html; # 首页索引文件
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header Connection "0";
proxy_redirect off;
set $upstream https://backs;
proxy_pass $upstream;
proxy_next_upstream error;
proxy_http_version 1.1;
proxy_connect_timeout 30; #配置点1
proxy_read_timeout 300; #配置点2,如果没效,可以考虑这个时间配置长一点
proxy_send_timeout 300; #配置点3
}
回答:
https://backs
;改为http://backs
测试下
回答:
nginx后面的服务开https了么?
一般情况ningx处理https然后转发http给后端
以上是 nginx upstream timed out 10060 的全部内容, 来源链接: utcz.com/p/944113.html