相关文章推荐
成熟的刺猬  ·  請問大家如何解決 SAP ...·  1 年前    · 
爱旅游的柠檬  ·  python tcp包 解析类 ...·  2 年前    · 

可以加到http或者server中

语法:underscores_in_headers on|off
默认值:off
使用字段:http, server
是否允许在header的字段中带下划线

实例配置:

       server_name  dev.fashio*****.cn;
     underscores_in_headers on;
     location /bi-api/ {
            proxy_pass http://192.168.0.155:8080/;
            proxy_set_header Host $host;