You've already forked nginx-snippets
initial commit
This commit is contained in:
20
custom-errors.conf
Normal file
20
custom-errors.conf
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user