initial commit

This commit is contained in:
2025-11-02 11:49:39 +01:00
commit ec9dcadf58
47 changed files with 1997 additions and 0 deletions

20
custom-errors.conf Normal file
View File

@@ -0,0 +1,20 @@
error_page 400 /errorpages/custom_400.html;
error_page 401 /errorpages/custom_401.html;
error_page 403 /errorpages/custom_403.html;
error_page 404 /errorpages/custom_404.html;
error_page 500 /errorpages/custom_500.html;
error_page 502 /errorpages/custom_502.html;
error_page 503 /errorpages/custom_503.html;
error_page 504 /errorpages/custom_504.html;
# Serve all HTML, CSS, and image assets from one directory
location ^~ /errorpages/ {
alias /etc/nginx/nginx-snippets/errorpages/;
# Restrict to safe static types
types {
text/html html;
text/css css;
image/png png;
}
default_type text/html;
}