Welcome! Log In Create A New Profile

Advanced

Re: proxy_set_header at http level

Maxim Dounin
January 06, 2011 09:58AM
Hello!

On Thu, Jan 06, 2011 at 10:23:45PM +0800, 杨镭 wrote:

> Hi,
>
> Thanks. I did some tests:
>
> (A) Set X-AAA at http level and do nothing at server level.
> OK.
>
> (B) Set X-AAA at http level and set X-BBB at server level.
> Only X-BBB is set and sent to backend.
>
> So the inheritance mechanism of proxy_set_header works in a All-None mode.
> If there is any directive set at a smaller block, all the values set by
> bigger block are cancelled.

Yes. This is how it works for all array-type directives.

> Is it possible to change this behavior to the normal inheritance mechanism
> so setting directive at smaller block only cancel the same directive at
> bigger block?

No.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy_set_header at http level

杨镭 January 05, 2011 09:46AM

Re: proxy_set_header at http level

Maxim Dounin January 05, 2011 12:12PM

Re: proxy_set_header at http level

杨镭 January 06, 2011 09:26AM

Re: proxy_set_header at http level

Maxim Dounin January 06, 2011 09:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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