From 2986f00d3b2415627bdc88b0b587ceb7766a6d1c Mon Sep 17 00:00:00 2001 From: Alexander Kuhta Date: Thu, 22 Nov 2018 10:51:48 +0300 Subject: [PATCH] Fix redirect to https when it is disabled --- public/templates/conf/sites-available/example.com.conf.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/conf/sites-available/example.com.conf.html b/public/templates/conf/sites-available/example.com.conf.html index b34fb19..f92d98d 100644 --- a/public/templates/conf/sites-available/example.com.conf.html +++ b/public/templates/conf/sites-available/example.com.conf.html @@ -183,7 +183,7 @@ server { ✔ Let's Encrypt --> ssl_trusted_certificate /etc/letsencrypt/live/{{ domain() }}/fullchain.pem; - return 301 https://{{ isWWW() ? 'www.' : '' }}{{ domain() }}$request_uri; + return 301 http{{ isHTTPS() ? 's' : '' }}://{{ isWWW() ? 'www.' : '' }}{{ domain() }}$request_uri; }