Welcome! Log In Create A New Profile

Advanced

Re: add_header isn't taking effect

August 18, 2012 07:32PM
It actually seems like if I add_header in one scope somewhere it will
ignore in another.

For example I have one gratuitous add_header at the server {} level -
with a different name.

Then I add one on the location level.

Then I have one come from the upstream.

I could reproduce it reliably by adding an add_header somewhere and it
would drop the other one out. I also have two environments with nearly
exact configurations and one passes all 3 headers I want vs. 2 headers
consistently. Very odd.


On Sat, Aug 18, 2012 at 4:04 PM, Francis Daly <francis@daoine.org> wrote:
> On Sat, Aug 18, 2012 at 03:44:05PM -0700, Michael Shadle wrote:
>
> Hi there,
>
>> This block basically works like a charm, passes the upstream headers
>> from proxy_pass_header as expected, but the add_header doesn't seem to
>> work no matter what. add_header is what I use upstream to add the
>> headers like X-Hostname-Proxy.
>
> It seems to work for me. Perhaps my test case is not the same as your
> test case.
>
> What request do you make; what response do you get; and what response
> do you expect to get?
>
> f
> --
> Francis Daly francis@daoine.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

add_header isn't taking effect

mike August 18, 2012 06:46PM

Re: add_header isn't taking effect

Francis Daly August 18, 2012 07:06PM

Re: add_header isn't taking effect

mike August 18, 2012 07:32PM

Re: add_header isn't taking effect

Francis Daly August 18, 2012 07:48PM

Re: add_header isn't taking effect

mike August 18, 2012 08:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 314
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