Welcome! Log In Create A New Profile

Advanced

RE: Ignore content-type while forwarding to backend proxy

December 24, 2014 01:54AM
thank you for the advice!
i tried doing that before though it did not work so i thought there could be another solution..in any case tried that again, set it right before the proxypass condition and it's still passing the type through...may i show u my config to see what might be overrirding that ?

> Date: Tue, 23 Dec 2014 18:42:50 +0300
> From: mdounin@mdounin.ru
> To: nginx@nginx.org
> Subject: Re: Ignore content-type while forwarding to backend proxy
>
> Hello!
>
> On Tue, Dec 23, 2014 at 05:10:09PM +0200, Roland RoLaNd wrote:
>
> > one of my apps, specifically those on IOS forwarded a
> > content-type header..this is causing my backend server to mess
> > up its security signature check....
> > i need to be able to ignore content-type headers...
> > assigning the header as empty "" does not work,
> > (proxy_set_header Accept-Encoding "";)and also tried mapping the
> > content-type and using the variable... though that did not work
> > either as backend is very strict in that regard...
> >
> > i need to be able to ignore it completely...
> > i tried adding proxy_hide_header Content-Type;
> >
> > and tested,it's still sending content-type while directing
> > traffic to backend..
> >
> > any advice?
>
> To control headers sent by nginx to backends you have to use the
> "proxy_set_header" directive. If you want to hide Content-Type,
> use this:
>
> proxy_set_header Content-Type "";
>
> More information can be found in the documentation here:
>
> http://nginx.org/r/proxy_set_header
>
> --
> Maxim Dounin
> http://nginx.org/
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Ignore content-type while forwarding to backend proxy

dnalor December 23, 2014 10:12AM

Re: Ignore content-type while forwarding to backend proxy

Maxim Dounin December 23, 2014 10:44AM

RE: Ignore content-type while forwarding to backend proxy

dnalor December 24, 2014 01:54AM

Re: Ignore content-type while forwarding to backend proxy

Francis Daly December 24, 2014 04:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 107
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready