小编mon*_*key的帖子

为什么在 nginx/nginx 上游使用 http/1.0?

我有 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 作为上游?在 nginx 和 nginx 之间,上游使用 http/1.0 ?

谢谢。

nginx keep-alive http-1.0 http-1.1

2
推荐指数
1
解决办法
5391
查看次数

标签 统计

http-1.0 ×1

http-1.1 ×1

keep-alive ×1

nginx ×1