Jack Henschel
2018-12-04 16:00:10 UTC
Hello,
From the current documentation it was not immediately obvious (at least
to me and my colleague) that nginx does not set the $proxy_host variable
to the hosts specified in an upstream block, but literally uses the name
used in the proxy_pass directive.
Maxim Dounin has explained to me the reason for this [1], nevertheless I
think it is worthwhile explicitly adding this behavior to the documentation.
Regards
Jack
[1] http://mailman.nginx.org/pipermail/nginx/2018-November/057184.html
From the current documentation it was not immediately obvious (at least
to me and my colleague) that nginx does not set the $proxy_host variable
to the hosts specified in an upstream block, but literally uses the name
used in the proxy_pass directive.
Maxim Dounin has explained to me the reason for this [1], nevertheless I
think it is worthwhile explicitly adding this behavior to the documentation.
Regards
Jack
[1] http://mailman.nginx.org/pipermail/nginx/2018-November/057184.html