环境:CentOS 6.5 64bit
nginx版本:1.12.2
配置方法:
[root@localhost nginx]# vim conf/nginx.conf
参考nginx官网说明:http://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers
Syntax: | underscores_in_headers |
---|---|
Default: | underscores_in_headers off; |
Context: | http , server |
Enables or disables the use of underscores in client request header fields. When the use of underscores is disabled, request header fields whose names contain underscores are marked as invalid and become subject to the ignore_invalid_headers directive.
参考网文:http://blog.csdn.net/Nazir2513/article/details/70889319