A better "site not available" page

We serve the “offline” and “site not found” pages out of haproxy, which runs in front of all our sites (and doesn’t get “rebuilt” in the same way a Discourse instance does). You could teach nginx a similar trick, with the error_page directive and specifying a custom (static) page to load whenever a 502 would otherwise be served.

11 Likes