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;