美文网首页
解决nginx反向代理proxy不能转发header报头

解决nginx反向代理proxy不能转发header报头

作者: 章文顺 | 来源:发表于2019-05-08 12:32 被阅读0次

1:配置中http部分 增加underscores_in_headers on; 配置

2:用减号-替代下划线符号_,避免这种变态问题。nginx默认忽略掉下划线可能有些原因。

可以加到http或者server中(本人测试放在server中不行,http中可以,可能是我nginx版本问题)

语法:underscores_in_headers on|off
默认值:off
使用字段:http, server
是否允许在header的字段中带下划线。

大前端知识库收集分享 www.rjxgc.com 壹玖零Tech
搜罗各种前后端奇淫技巧,花式编程思想,日日更新,速来围观吧...

引用:https://blog.51cto.com/yanconggod/1983494

相关文章

网友评论

      本文标题:解决nginx反向代理proxy不能转发header报头

      本文链接:https://www.haomeiwen.com/subject/aydmoqtx.html