diff --git a/scripts/clmc-service/nginx.conf b/scripts/clmc-service/nginx.conf index 813ac0c7228b3874fc7775a2b8b0992d729da4dc..2c4029e3c12c29d669e6561475b424e8e7dd4806 100644 --- a/scripts/clmc-service/nginx.conf +++ b/scripts/clmc-service/nginx.conf @@ -26,7 +26,7 @@ http { location /kapacitor { proxy_pass http://127.0.0.1:9092; # N.B. No URI in the URL, passes the whole location preserving the prefix proxy_redirect off; - proxy_set_header Host $host; + 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-Host $server_name; @@ -34,7 +34,7 @@ http { location /clmc-service/ { proxy_pass http://127.0.0.1:9080/; proxy_redirect off; - proxy_set_header Host $host; + 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-Host $server_name; @@ -42,7 +42,7 @@ http { location /influxdb/ { proxy_pass http://127.0.0.1:8086/; proxy_redirect off; - proxy_set_header Host $host; + 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-Host $server_name; @@ -50,7 +50,7 @@ http { location /neo4j/ { proxy_pass http://127.0.0.1:7474/; proxy_redirect off; - proxy_set_header Host $host; + 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-Host $server_name; @@ -58,7 +58,7 @@ http { location /chronograf { proxy_pass http://127.0.0.1:8888; # No trailing slash - chronograf is configured to include '/chronograf' prefix in its routes proxy_redirect off; - proxy_set_header Host $host; + 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-Host $server_name;