# A better "site not available" page

**URL:** <https://meta.discourse.org/t/a-better-site-not-available-page/44826>\
**Category:** Site feedback\
**Created:** [2016 年5 月 26 日 08:52 UTC](https://meta.discourse.org/t/a-better-site-not-available-page/44826 "2016-05-26T08:52:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
发布日期： [2016 年5 月 26 日 09:03 UTC](https://meta.discourse.org/t/a-better-site-not-available-page/44826/2 "2016-05-26T09:03:46Z")

</div>

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](http://nginx.org/en/docs/http/ngx_http_core_module.html#error_page) and specifying a custom (static) page to load whenever a 502 would otherwise be served.

---

_[View the full topic](https://meta.discourse.org/t/a-better-site-not-available-page/44826)._
