如果一个http请求中包含下划线,比如设置 translate_lang=\'zh\',在nginx中无法解析 解决方法: 1. 请求头header中自定义变量名不要使用下划线 2. 在nginx.conf中加上underscores_in_headers on配置 http { include mime.types; default_type application/octet-stream; sendfile on; underscores_in_headers on; keepalive_timeout 65; } 参考引用自:https://www.cnblogs.com/huchong/p/10246031.html 相关文章: 2022-12-23 2022-12-23 2022-12-23 2021-09-20 2021-11-27 2021-08-15 2022-12-23 2021-08-23