In addition to what Maxim said some people do not realize that not all headers are created equally and that something as inane as underscores versus dashes causes it to break RFC and nginx need you to explicitly tell it that that's okay: http://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers