From 4b1dba1e174462615bf032c2e756cb80198f04f7 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 5 Dec 2017 23:46:20 +0100 Subject: =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom/ymir-nginx.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix index 36011af8..31fa74f4 100644 --- a/custom/ymir-nginx.nix +++ b/custom/ymir-nginx.nix @@ -194,8 +194,8 @@ in { include ${acme}; location ~ ^/(.+?)(/.*)?$ { - if ($scheme = http) { - return 301 https://$host$request_uri; + if ($scheme = 'http') { + rewrite ^ https://$host$request_uri? permanent; } alias /srv/www/webdav/$1$2; -- cgit v1.2.3