Nginx: underscores_in_headers

该指令出生日期


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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容