nginx upstream 修改http版本为1.1 proxy_http_version
2016-07-12 00:00
441 查看
摘要: proxy_http_version
{ ngx_string("proxy_http_version"),
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
ngx_conf_set_enum_slot,
NGX_HTTP_LOC_CONF_OFFSET,
offsetof(ngx_http_proxy_loc_conf_t, http_version),
&ngx_http_proxy_http_version },
static ngx_conf_enum_t ngx_http_proxy_http_version[] = {
{ ngx_string("1.0"), NGX_HTTP_VERSION_10 },
{ ngx_string("1.1"), NGX_HTTP_VERSION_11 },
{ ngx_null_string, 0 }
};
可选方案为: proxy_http_version 1.0 ;
proxy_http_version 1.1;
{ ngx_string("proxy_http_version"),
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
ngx_conf_set_enum_slot,
NGX_HTTP_LOC_CONF_OFFSET,
offsetof(ngx_http_proxy_loc_conf_t, http_version),
&ngx_http_proxy_http_version },
static ngx_conf_enum_t ngx_http_proxy_http_version[] = {
{ ngx_string("1.0"), NGX_HTTP_VERSION_10 },
{ ngx_string("1.1"), NGX_HTTP_VERSION_11 },
{ ngx_null_string, 0 }
};
可选方案为: proxy_http_version 1.0 ;
proxy_http_version 1.1;
相关文章推荐
- 使WCF Restful 向外提供https服务
- 实践HTTP206状态:部分内容和范围请求
- http://blog.oneapm.com/apm-tech/122.html
- 在 Linux 中安装 Lighttpd Web 服务器
- Num72 linux内外部命令,网络,开发环境搭建,常用命令
- TextView中html字符串(带网络图片处理)
- 网络面试常见问题总结
- Android 使用PLDroidPlayer播放网络视频 根据视频角度自动旋转
- http基础知识
- http 需要掌握的知识点(一)
- Servlet学习笔记(HTTP请求详细了解以及文件下载示例)
- CentOS 7 下VMWARE虚拟机克隆后网络设置的问题
- Cacti 是一套基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具
- 从图像到知识:深度神经网络实现图像理解的原理解析
- Hash, MAC,HMAC
- Web服务及http协议
- Qt中利用TCP实现客户端与服务器端的数据传输
- 某台计算机允许域用户修改网络配置,但不允许安装和卸载软件 推荐
- 火狐浏览器使用HttpRequester模拟发送http请求
- Ubuntu install SVN server and configure using http access