From e1a37ea9cce98befda78db9360a0802c8d4da12e Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 5 Dec 2017 23:43:51 +0100 Subject: fix redirect --- custom/ymir-nginx.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix index b61c448c..36011af8 100644 --- a/custom/ymir-nginx.nix +++ b/custom/ymir-nginx.nix @@ -195,7 +195,7 @@ in { location ~ ^/(.+?)(/.*)?$ { if ($scheme = http) { - return 301 https://$server_name$request_uri; + return 301 https://$host$request_uri; } alias /srv/www/webdav/$1$2; -- cgit v1.2.3