nginx转 apache ,发现HTTP协议版本 从1.1 变成了1.0
其实并非某些人说的不支持1.1,而是有个参数,默认为1.0而已。
NGINX
HTTP/1.1" 200 3578 0.035 "http://plugin/index.php/video/youku" "Mozilla/5.0 (iPad; CPU OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Mobile/11B554a" -
APACHE
HTTP/1.0" 200 3815 "http://plugin/index.php/video/youku" "Mozilla/5.0 (iPad; CPU OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Mobile/11B554a"
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_http_version
| syntax: | proxy_http_version |
| default: | proxy_http_version 1.0; |
| context: | http, server, location |
This directive appeared in version 1.1.4.
Sets the HTTP protocol version for proxying. By default, version 1.0 is used. Version 1.1 is recommended for use with keepalive connections.
本文深入探讨了NGINX与Apache在处理HTTP协议版本时的细微差别,特别关注了默认设置对协议版本的影响。通过具体实例展示了NGINX如何将HTTP协议版本从1.1更改为1.0,并解释了这一变化背后的原理。
1370

被折叠的 条评论
为什么被折叠?



