diff --git a/modules/ftp.nix b/modules/ftp.nix index ccedcfa..33923ed 100644 --- a/modules/ftp.nix +++ b/modules/ftp.nix @@ -11,12 +11,26 @@ in extraConfig = '' fancyindex on; fancyindex_exact_size off; + error_page 403 /403.html; ''; locations."~/(klausuren|uebungen|skripte|abschlussarbeiten)".extraConfig = '' allow 141.30.0.0/16; allow 141.76.0.0/16; deny all; ''; - + locations."=/403.html" = { + root = pkgs.writeTextDir "403.html" '' + +
+