From c8fa7b90540e1aaf22b8ee0b8ba855b217da77fc Mon Sep 17 00:00:00 2001 From: Ondrej Kinovic Date: Wed, 20 Sep 2017 16:56:12 +0200 Subject: [PATCH] use http_host insteda of server_name --- docker/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/nginx.conf b/docker/nginx.conf index 2a794f3..5f3207c 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -26,7 +26,7 @@ http { location / { proxy_pass http://netbox:8001; - proxy_set_header X-Forwarded-Host $server_name; + proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';