armsultan
7/12/2017 - 10:43 PM

Catch all HTTP error codes and show a single "catch all" error page. This will respond to all HTTP error codes and return the error.html pa

Catch all HTTP error codes and show a single "catch all" error page. This will respond to all HTTP error codes and return the error.html page from the site root folder.

error_page 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 420 422 423 424 426 428 429 431 444 449 450 451 500 501 502 503 504 505 506 507 508 509 510 511 /error.html;
location  /error.html {
    # root html/error; # uncomment to change root directory and serve error page from here
    internal;
}