From: Roldan Date: Mon, 5 Jun 2017 16:41:16 +0000 (+0800) Subject: Update web.ssl.template.yml X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f693f67031cb0ce2504b5502cf8389280e81917b;p=discourse_docker.git Update web.ssl.template.yml Use proper return 301 instead of rewrite for HTTPS redirect --- 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: