# 服务器更新时是否有办法显示横幅

**URL:** <https://meta.discourse.org/t/is-there-a-way-to-display-a-banner-when-the-server-is-updating/224919>\
**Category:** Support\
**Created:** [2022年四月21日 07:06 UTC](https://meta.discourse.org/t/is-there-a-way-to-display-a-banner-when-the-server-is-updating/224919 "2022-04-21T07:06:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![daemon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daemon/32/256632_2.png) [@daemon](https://meta.discourse.org/u/daemon)\
**Post date:** [2022年四月21日 07:12 UTC](https://meta.discourse.org/t/is-there-a-way-to-display-a-banner-when-the-server-is-updating/224919/2 "2022-04-21T07:12:20Z")

</div>

您好！

试试这个：

> [@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 loose 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… [image] …or a not-so-nice 502 error message from Nginx: [image] If you’re a perfectionist l…

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-way-to-display-a-banner-when-the-server-is-updating/224919)._
