used error_pages snippet

This commit is contained in:
Asif Bacchus 2019-01-04 03:24:14 -07:00
parent 4923743837
commit 00b5b4d0c1
2 changed files with 2 additions and 22 deletions

View File

@ -14,15 +14,5 @@ server {
return 301 https://$host$request_uri;
# error pages
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
internal;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
internal;
}
include /etc/nginx/snippets/error_pages.conf;
}

View File

@ -28,15 +28,5 @@ server {
}
# error pages
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
internal;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
internal;
}
include /etc/nginx/snippets/error_pages.conf;
}