diff --git a/hosts/www/nginx.nix b/hosts/www/nginx.nix index 6032ec7..073e7d0 100644 --- a/hosts/www/nginx.nix +++ b/hosts/www/nginx.nix @@ -30,8 +30,8 @@ in ".well-known/loc" = { root = "/srv/http/noc"; }; - "/twentyyears" = { - alias = "/srv/http/twentyyears/"; + "/twentyyears/" = { + alias = "/srv/http/twentyyears"; }; "/.well-known/matrix/client" = { return = "200 '{\"m.homeserver\":{\"base_url\":\"https://matrix.berlin.ccc.de\"}}'"; @@ -47,8 +47,8 @@ in default_type application/json; ''; }; - "~ ^/~(.+?)$" = { - alias = "/srv/http/homes/$1/"; + "~ ^/~(.+?)/$" = { + alias = "/srv/http/homes/$1"; extraConfig = '' autoindex on; '';