diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-05 23:43:51 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-05 23:43:51 +0100 |
commit | e1a37ea9cce98befda78db9360a0802c8d4da12e (patch) | |
tree | e86ad76f18c43d472fb238450e24fc33076cee27 /custom/ymir-nginx.nix | |
parent | 0530526f816c75620c8067db668a52cf8a205a1f (diff) | |
download | nixos-e1a37ea9cce98befda78db9360a0802c8d4da12e.tar nixos-e1a37ea9cce98befda78db9360a0802c8d4da12e.tar.gz nixos-e1a37ea9cce98befda78db9360a0802c8d4da12e.tar.bz2 nixos-e1a37ea9cce98befda78db9360a0802c8d4da12e.tar.xz nixos-e1a37ea9cce98befda78db9360a0802c8d4da12e.zip |
fix redirect
Diffstat (limited to 'custom/ymir-nginx.nix')
-rw-r--r-- | custom/ymir-nginx.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
195 | 195 | ||
196 | location ~ ^/(.+?)(/.*)?$ { | 196 | location ~ ^/(.+?)(/.*)?$ { |
197 | if ($scheme = http) { | 197 | if ($scheme = http) { |
198 | return 301 https://$server_name$request_uri; | 198 | return 301 https://$host$request_uri; |
199 | } | 199 | } |
200 | 200 | ||
201 | alias /srv/www/webdav/$1$2; | 201 | alias /srv/www/webdav/$1$2; |