From 1175592f141a4fd3fab0bed51caf37e3126c5863 Mon Sep 17 00:00:00 2001 From: Thabo Date: Mon, 13 Jul 2015 17:11:37 -0700 Subject: [PATCH] use http_host not server_name --- src/conf/tc-prod-nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf/tc-prod-nginx.conf b/src/conf/tc-prod-nginx.conf index e7686dcb..52e49339 100644 --- a/src/conf/tc-prod-nginx.conf +++ b/src/conf/tc-prod-nginx.conf @@ -9,7 +9,7 @@ server { listen [::]:8080 default_server ipv6only=on; if ($http_x_forwarded_proto != "https") { - return 301 https://$server_name$request_uri; + return 301 https://$http_host$request_uri; } set $root_base /home/ubuntu/tc-site;