You've already forked nginx-snippets
21 lines
642 B
Plaintext
21 lines
642 B
Plaintext
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;
|
|
}
|