wordpress-nginx-main/globals/error-pages.conf
hhftechnologies dd82b3e56c update
2024-09-28 17:48:20 +05:30

23 lines
380 B
Text

# Custom 403 Page
error_page 403 @fetch403;
location @fetch403 {
root /etc/nginx/errors;
try_files /403.html =404;
}
# Custom 404 Page
error_page 404 @fetch404;
location @fetch404 {
root /etc/nginx/errors;
try_files /404.html =404;
}
# Custom 550 Page
error_page 550 @fetch550;
location @fetch550 {
root /etc/nginx/errors;
try_files /550.html =404;
}