山己几

Home

❯

10 Topics

❯

nginx配置 请求头可带下划线

nginx配置-请求头可带下划线

May 29, 20251 min read

  • topic/Nginx
  • topic/计算机网络

nginx配置-请求头可带下划线

nginx 默认忽略带下划线的header 如果http头中有带有下划线的头 需要进行如下配置:

underscores_in_headers on;

标准的HTTP头应使用减号拼接

参考链接

  • 原因:避免headers映射为CGI变量时出现歧义 <https://github.com/cherishman2005/nginx-modules/blob/master/nginx header头字段尽量不要使用下划线.md>
  • nginx 0.7 changelog http://nginx.org/en/CHANGES-0.7

Graph View

  • nginx配置-请求头可带下划线
  • 参考链接

Backlinks

  • 八股文知识库索引

Created with Quartz v4.5.2 © 2026

  • GitHub
  • Discord Community