Nginx配置优化之启用HTTP1.1

默认配置时
1
2
3
GET / HTTP/1.0
Host: baiyangliu.com
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
修改配置
1
proxy_http_version    1.1;
再次请求
1
2
3
GET / HTTP/1.1
Host: baiyangliu.com
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8

可以发现HTTP/1.0变成HTTP/1.1