# 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:** 1\
**Showing post:** 2

<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 …

---

_[View the full topic](https://meta.discourse.org/t/nginx-how-to-show-a-placeholder-while-updating/105054)._
