ftp: custom 403 error page
This commit is contained in:
parent
b3ee1d8e23
commit
7f70ae990c
|
@ -11,12 +11,26 @@ in
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
fancyindex on;
|
fancyindex on;
|
||||||
fancyindex_exact_size off;
|
fancyindex_exact_size off;
|
||||||
|
error_page 403 /403.html;
|
||||||
'';
|
'';
|
||||||
locations."~/(klausuren|uebungen|skripte|abschlussarbeiten)".extraConfig = ''
|
locations."~/(klausuren|uebungen|skripte|abschlussarbeiten)".extraConfig = ''
|
||||||
allow 141.30.0.0/16;
|
allow 141.30.0.0/16;
|
||||||
allow 141.76.0.0/16;
|
allow 141.76.0.0/16;
|
||||||
deny all;
|
deny all;
|
||||||
'';
|
'';
|
||||||
|
locations."=/403.html" = {
|
||||||
|
root = pkgs.writeTextDir "403.html" ''
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>403 Forbidden</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<center><h1>403 Forbidden</h1></center>
|
||||||
|
<center>Dieser Ordner ist nur aus dem Uni-Netz zugänglich.</center>
|
||||||
|
<center>This directory is only accessible from the TUD network.</center>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue