proxy_set_header directives don't inherit from father context
me at nanaya.pro
Wed Jul 5 05:57:51 UTC 2017
On Wed, Jul 5, 2017, at 14:41, foxgab wrote:
> i expected the X-Forwarded-For and X-Forwarded-Proto header will be set,
> it didn't.
> what happend?
Quite a few of additive configs (proxy_set_header, add_header) are only
inherited if there's no same directive set at current block.
>From documentation :
> These directives are inherited from the previous level if and only if there are no proxy_set_header directives defined on the current level.
More information about the nginx