美文网首页
Nginx: underscores_in_headers

Nginx: underscores_in_headers

作者: 印随2018 | 来源:发表于2017-01-09 19:53 被阅读778次

该指令出生日期


Changes with nginx 0.7.18                                        13 Oct 2008

*) Change: the "underscores_in_headers" directive; now nginx does not
allows underscores in a client request header line names.

ref: http://nginx.org/en/CHANGES-0.7

难懂的文档


If the directive is specified on the server level, its value is only used if a server is a default one. The value specified also applies to all virtual servers listening on the same address and port.

该指令可以配置只server级别,但是只有设置为默认服务器的时候才会生效,其他虚拟服务器会复用这个指令。
因为,处理header头部的时候,域名还未解析完成(Host在header中),无法区分多个虚拟主机的配置,所以多个虚拟主机需要共用一种配置。
多个虚拟服务器设置以默认服务器为准。

相似的指令


ignore_invalid_headers
merge_slashes

相关文章

网友评论

      本文标题:Nginx: underscores_in_headers

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