Welcome! Log In Create A New Profile

Advanced

proxy_set_header and it's documentation article

January 12, 2023 03:43PM
The doc says:

"
[...]

Allows redefining or appending fields to the request header passed to the proxied server. The value can contain text, variables, and their combinations. These directives are inherited from the previous configuration level if and only if there are no proxy_set_header directives defined on the current level. By default, only two fields are redefined: [..]"

Formally the definition is precise. But I suppose I'm not the only one who falls into this trap and thinks that the following configuration piece

server {
proxy_set_header A B;
location / {
proxy_set_header B C;
}
}

will lead to both A and B headers defined, but in reality this leads only to B being defined and A becoming unset. Could the fact that proxy_set_header directive if present on the current level redefines/unsets the whole bulk of headers possibly be accented in the article ?

Thanks.
Subject Author Posted

proxy_set_header and it's documentation article

drook January 12, 2023 03:43PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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