nginx

Custom Bad Gateway Page with Nginx


Is it possible to serve a custom "Bad Gateway" error page in Nginx?

Similar to having custom 404 pages.


Solution

  • It's similar to setting up the custom 404 pages. Here's what I've got.

    #site-wide error pages
    error_page 404 /404.html;
    error_page 500 502 503 504 /500.html;