Hello Appa,

I am having the same issue. I want NGINX to serve all the json file from
upstream as a content type of application/json.I tried with map just like
you suggested but I am not able to figure out what should be inside map(That
you have written below), Can you please suggest?

map $upstream_http_content_type $s3_content_type {
# S3 -> real...
}

location ~ \.json$ {
        proxy_hide_header Content-Type;
        add_header Content-Type $s3_content_type;
}

--Manish

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,239473,252358#msg-252358

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to