set fun error pages as global default
This commit is contained in:
parent
2d2548172a
commit
365ed42971
10
build/config/errorpages.conf
Normal file
10
build/config/errorpages.conf
Normal file
@ -0,0 +1,10 @@
|
||||
# error pages
|
||||
error_page 400 /errorpages/400.html;
|
||||
error_page 401 /errorpages/401.html;
|
||||
error_page 403 /errorpages/403.html;
|
||||
error_page 404 /errorpages/404.html;
|
||||
error_page 500 502 503 504 /errorpages/50x.html;
|
||||
|
||||
location ^~ /errorpages {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
@ -44,6 +44,9 @@ http {
|
||||
resolver 1.1.1.1;
|
||||
include /etc/nginx/config/*.conf;
|
||||
|
||||
# set default 'fun' error pages
|
||||
include /etc/nginx/errorpages.conf;
|
||||
|
||||
# include enabled server blocks from sites/*.conf
|
||||
include /etc/nginx/sites/*.conf;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user