1. 程式人生 > >nginx解決帶_的head內容丟失

nginx解決帶_的head內容丟失

class sco tom blog http 轉發 tomcat cor 自定義

若請求 Head 信息中存在自定義信息並且以 "_" 下劃線間隔,則必須配置underscores_in_headers 否則 Head 無法向 Tomcat 轉發

解決辦法:

在nginx.conf的http塊中添加以下參數

underscores_in_headers on;

nginx解決帶_的head內容丟失