Use $http_host in a Host header

This is needed to support NodePorts for example, since in that case
it contains hostname:port which was used in browser.

Change-Id: Ic84a2eb31d3bfd5b7f5a3a4fe41b0896d37a4afa
This commit is contained in:
Proskurin Kirill 2017-03-01 15:37:33 +00:00
parent ecedb51ea5
commit 71f4609446
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
proxy_set_header Host $host:$server_port;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;