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

你可能感兴趣的:(Nginx: underscores_in_headers)