# Setting up offline page

**URL:** <https://meta.discourse.org/t/setting-up-offline-page/81462>\
**Category:** Self-hosting\
**Created:** [February 25, 2018, 8:49am UTC](https://meta.discourse.org/t/setting-up-offline-page/81462 "2018-02-25T08:49:19Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![dje4321](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dje4321/32/78454_2.png) [@dje4321](https://meta.discourse.org/u/dje4321)\
**Post date:** [February 25, 2018, 8:49am UTC](https://meta.discourse.org/t/setting-up-offline-page/81462/1 "2018-02-25T08:49:19Z")

</div>

So im following this guide to setup a offline page for when the forum goes down for whatever reason but ive run into 2 issues. The two issues im running into are that nginx is not redirecting 502 errors to the offline page and when both discourse and nginx are running i cant reach the forums.

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

`/etc/nginx/sites-available/default.conf`  
[https://paste.fedoraproject.org/paste/e01vmM3pkI41nlZhzuDmuA/](https://paste.fedoraproject.org/paste/e01vmM3pkI41nlZhzuDmuA/)

`/etc/nginx/nginx.conf`  
[https://paste.fedoraproject.org/paste/B032qvRECjgrsvcjXCWc7g](https://paste.fedoraproject.org/paste/B032qvRECjgrsvcjXCWc7g)  
NOTE: i added the `include /etc/nginx/site-available/*.conf;` line because it would only load the default config

`/var/discourse/containers/app.yml`  
[https://paste.fedoraproject.org/paste/DQxhGWvfD7MBUyYWGTpqxQ/](https://paste.fedoraproject.org/paste/DQxhGWvfD7MBUyYWGTpqxQ/)

Any tips or advice for what i might be doing wrong?

---

_[View the full topic](https://meta.discourse.org/t/setting-up-offline-page/81462)._
