proxy_ignore_headers Content-Type; proxy_hide_header Content-Type; add_header Content-Type $upstream_http_x_my_content_type; Posted at Nginx Forum: http://forum.nginx.org/read.php?21,259138,259139#msg-259139