yhjs

如果一个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
猜你喜欢
  • 2021-08-07
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案