【发布时间】:2017-05-06 11:25:01
【问题描述】:
我有 3 个服务器: A(nginx)-->B(nginx)-->C(nodejs),
当我访问A或B时,chrome默认使用http/1.1+keepalive。
我没有设置“proxy_http_version 1.1;”和 proxy_set_header 连接"";
但是在A和B之间,NGINX默认使用http/1.0。也就是说:
客户端 --> nginxA(上游到b) --> nginxB(上游到c) -->C (nodejs)
http/1.1 --> http/1.0 --> http/1.1 --> nodejs
我的问题是: 为什么nginx默认使用http/1.1作为upstream,在nginx和nginx之间,upstream使用http/1.0?
谢谢。
【问题讨论】:
-
你确定你没有配置 nginx 使用 http/1.1 作为节点?
-
是的,我确定。我使用的是 Tengine-2.2.0(基于 Nginx-1.8.1)。感谢您的快速回复。
-
我想我找到了我的结果:serverfault.com/questions/442960/…thanks~
标签: nginx keep-alive http-1.1 http-1.0