# Nginx：更新时如何显示占位符？

**URL:** <https://meta.discourse.org/t/nginx-how-to-show-a-placeholder-while-updating/105054>\
**Category:** Support\
**Created:** [2018年十二月26日 04:42 UTC](https://meta.discourse.org/t/nginx-how-to-show-a-placeholder-while-updating/105054 "2018-12-26T04:42:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dylanh724](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dylanh724/32/119642_2.png) [@dylanh724](https://meta.discourse.org/u/dylanh724)\
**Post date:** [2018年十二月26日 04:42 UTC](https://meta.discourse.org/t/nginx-how-to-show-a-placeholder-while-updating/105054/1 "2018-12-26T04:42:58Z")

</div>

Instead of a 404 or something, how can we show a placeholder while updating the forum using Nginx?

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [2018年十二月26日 04:47 UTC](https://meta.discourse.org/t/nginx-how-to-show-a-placeholder-while-updating/105054/2 "2018-12-26T04:47:22Z")

</div>

Something like this?

> [@Add an offline page to display when Discourse is rebuilding or starting up](https://meta.discourse.org/t/adding-an-offline-page-when-rebuilding/45238):
>
> warning This guide is intended for advanced users, who are already using nginx outside the docker container. By following this guide you make your setup more complicated and will lose some speed benefits like HTTP2 if you’re not running Ubuntu 16.04 or later. Proceed with caution! When Discourse is rebuilding or starting up, your users will usually either see an error message from their browser… …or a not-so-nice 502 error message from Nginx: If you’re a perfectionist …

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2018年十二月26日 05:34 UTC](https://meta.discourse.org/t/nginx-how-to-show-a-placeholder-while-updating/105054/3 "2018-12-26T05:34:43Z")

</div>


