博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
nginx自定义header头内容丢失
阅读量:7040 次
发布时间:2019-06-28

本文共 741 字,大约阅读时间需要 2 分钟。

  hot3.png

今天碰到,使用nginx做负载均衡,http  header自定义的参数不转发的问题。

发现带下划线的的自定义参数,不能转发,

soule下确实有这个情况:

原来默认 underscores_in_headers  为off.

syntax:	underscores_in_headers on | off;default:	underscores_in_headers off;context:	http, server

Enables or disables the use of underscores in client request header fields. When disabled, request header fields whose names contain underscores are marked as invalid and are subject to the  directive.

syntax:	ignore_invalid_headers on | off;default:	ignore_invalid_headers on;context:	http, server
Controls whether header fields with invalid names should be ignored. Valid names are composed of English letters, digits, hyphens, and possibly underscores (as controlled by the 
 directive).

转载于:https://my.oschina.net/greki/blog/83945

你可能感兴趣的文章
强制初始化Bean
查看>>
微信网页开发之创建Controller(三)
查看>>
大数据(hadoop-小文件合并、Mapreduce原理)
查看>>
WKWebView 基本使用及与JS交互,以及低版本系统崩溃问题解决
查看>>
深度学习之视频摘要发展综述
查看>>
DNS协议 记录类型 浅读
查看>>
通过90行代码学会HTML5 WebSQL的4种基本操作
查看>>
SAP GUI里Screen Painter的工作原理
查看>>
TensorFlow官方文档解释关于TensorFlow的一些常见问题
查看>>
UI2CODE智能生成代码——组件识别篇
查看>>
阿里云CDN技术掌舵人文景:相爱相杀一路狂奔的这十年
查看>>
学习笔记:为什么10年前我学习的是ASP脚本而没有选择PHP程序语言?(图)
查看>>
Python基础总结成千行代码,让Python入门更简单!
查看>>
linux中的free解析
查看>>
【Postfix】利用postal进行Postfix的压力测试
查看>>
ubuntu12.04本地搭建ubuntu更新源
查看>>
如何让wp7真机调试时候保持屏幕高亮不锁屏
查看>>
试论SAN环境对存储设备的应用
查看>>
修改Firefox的缓存位置
查看>>
我的友情链接
查看>>