set fun error pages as global default

This commit is contained in:
Asif Bacchus 2019-10-17 01:06:52 -06:00
parent 2d2548172a
commit 365ed42971
2 changed files with 13 additions and 0 deletions

View 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;
}

View File

@ -44,6 +44,9 @@ http {
resolver 1.1.1.1; resolver 1.1.1.1;
include /etc/nginx/config/*.conf; include /etc/nginx/config/*.conf;
# set default 'fun' error pages
include /etc/nginx/errorpages.conf;
# include enabled server blocks from sites/*.conf # include enabled server blocks from sites/*.conf
include /etc/nginx/sites/*.conf; include /etc/nginx/sites/*.conf;
} }