From f693f67031cb0ce2504b5502cf8389280e81917b Mon Sep 17 00:00:00 2001 From: Roldan Date: Tue, 6 Jun 2017 00:41:16 +0800 Subject: [PATCH] Update web.ssl.template.yml Use proper return 301 instead of rewrite for HTTPS redirect --- templates/web.ssl.template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/web.ssl.template.yml b/templates/web.ssl.template.yml index 7c358a9..76b600e 100644 --- a/templates/web.ssl.template.yml +++ b/templates/web.ssl.template.yml @@ -9,7 +9,7 @@ run: to: | server { listen 80; - rewrite ^ https://$$ENV_DISCOURSE_HOSTNAME$request_uri? permanent; + return 301 https://$$ENV_DISCOURSE_HOSTNAME$request_uri; } server { - replace: -- 2.25.1