只需要在配置文件中加入以下参数即可, 这个问题困扰了博主很久, 所以记录下来 underscores_in_headers on; 设置成off的时候, nginx是接收不到带下划线的request headers的