# Seeing "welcome to nginx" after backup restore

**URL:** https://meta.discourse.org/t/seeing-welcome-to-nginx-after-backup-restore/109108
**Category:** Self-hosting
**Tags:** unsupported-install
**Created:** [2월 13, 2019, 11:48오후 UTC](https://meta.discourse.org/t/seeing-welcome-to-nginx-after-backup-restore/109108 "2019-02-13T23:48:08Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![PaulSolt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulsolt/32/120561_2.png) [@PaulSolt](https://meta.discourse.org/u/PaulSolt)
#### Post date: [2월 13, 2019, 11:48오후 UTC](https://meta.discourse.org/t/seeing-welcome-to-nginx-after-backup-restore/109108/1 "2019-02-13T23:48:08Z")

</div>

> [@Move your Discourse Instance to a Different Server](https://meta.discourse.org/t/move-your-discourse-instance-to-a-different-server/15721/1):
>
> You either need to turn that off via the Rails console

How do I disable https on a restore?

Before my restore, I was able to see my new Discourse instance ([http://159.65.164.214](http://159.65.164.214)), but after the restore I see:

> # Welcome to nginx!
> 
> If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

Is this related to force https, or did I break something?

I haven’t changed DNS yet … because I’m trying to figure out how to get this restore to work.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2월 14, 2019, 12:07오전 UTC](https://meta.discourse.org/t/seeing-welcome-to-nginx-after-backup-restore/109108/2 "2019-02-14T00:07:29Z")

</div>

You have some other web server running. Did you install `acme` and `nginx` to enable https? If so, you should remove them and search for something like `#howto https`

---

<div class="post-metadata">

### Author: ![PaulSolt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulsolt/32/120561_2.png) [@PaulSolt](https://meta.discourse.org/u/PaulSolt)
#### Post date: [2월 14, 2019, 12:11오전 UTC](https://meta.discourse.org/t/seeing-welcome-to-nginx-after-backup-restore/109108/3 "2019-02-14T00:11:25Z")

</div>

Thanks Jay, I did a one-click install from Digital Ocean for Discourse with Ubuntu 18.04. I didn’t install acme or nginx.

It’s brand new, and then the only thing I’ve done is to restore my backup.

I don’t have anything else setup on this new droplet. Is there a log where I should look for errors?

Does order matter when adding https and restoring backups? Or switching DNS for servers?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2월 14, 2019, 12:13오전 UTC](https://meta.discourse.org/t/seeing-welcome-to-nginx-after-backup-restore/109108/4 "2019-02-14T00:13:56Z")

</div>

You want to get https configured first.

Do you have a hostname defined?

You should try

```plaintext
cd /var/discourse
./discourse-setup

```

---

<div class="post-metadata">

### Author: ![PaulSolt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulsolt/32/120561_2.png) [@PaulSolt](https://meta.discourse.org/u/PaulSolt)
#### Post date: [2월 14, 2019, 12:20오전 UTC](https://meta.discourse.org/t/seeing-welcome-to-nginx-after-backup-restore/109108/5 "2019-02-14T00:20:43Z")

</div>

> [@Move your Discourse Instance to a Different Server](https://meta.discourse.org/t/move-your-discourse-instance-to-a-different-server/15721/71):
>
> Do you have a hostname defined?

I have an existing instance of Discourse running on 16.04, but I was trying to create a new instance on 18.04.

[https://community.SuperEasyApps.com](https://community.SuperEasyApps.com)

My original server is currently setup with DNS/https.

Now I’m trying to figure out when it’s safe to point DNS to new server … I’m confused on this transition step, and the impact https/letsencrypt has on it.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2월 14, 2019, 12:25오전 UTC](https://meta.discourse.org/t/seeing-welcome-to-nginx-after-backup-restore/109108/6 "2019-02-14T00:25:05Z")

</div>

Yes. That’s confusing. Lots of chickens and eggs.

Maybe if you point your DNS to the new server and run `discourse-setup` you’ll be OK.

If you get tired or it’s an emergency, see [Redirecting…](https://www.literatecomputing.com/product/rebuild-your-droplet/).

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [2월 14, 2019, 12:37오전 UTC](https://meta.discourse.org/t/seeing-welcome-to-nginx-after-backup-restore/109108/7 "2019-02-14T00:37:42Z")

</div>

> [@Move your Discourse Instance to a Different Server](https://meta.discourse.org/t/move-your-discourse-instance-to-a-different-server/15721/72):
>
> trying to figure out when it’s safe to point DNS to new server

Do you have a floating IP address set up at DigitalOcean?

> **Assign a floating IP**  
> A floating IP is a static IP address that points to one of your Droplets. It allows you to redirect network traffic to any of your Droplets in the same datacenter. For instance, if your primary Droplet goes offline, you can point your floating IP to a backup Droplet.

When your domain name points to the floating IP, then it becomes much easier to shift traffic from one instance to another as there is no wait for DNS info to propagate.

> **[Reserved IP Support | DigitalOcean Documentation](https://docs.digitalocean.com/products/networking/floating-ips/)**
>
> Get help with technical support and answers to frequently asked questions.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2월 14, 2019, 1:06오전 UTC](https://meta.discourse.org/t/seeing-welcome-to-nginx-after-backup-restore/109108/8 "2019-02-14T01:06:48Z")

</div>

You probably need to speak to DigitalOcean about this, we can’t support their one-click installs here. They’re billed as being simpler, and that may be true if they’re willing to support it, but we can’t.

The only supportable configuration is from the [Standard Install Guide](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) which will incidentally bypass all of the issues you’re mentioning above.

One caveat to note is that due to the nature of enrollment for Let’s Encrypt you can’t set a certificate back up without first repointing DNS. Let’s Encrypt needs to connect to your server by the DNS record specified.

Another thing to be aware of is that accessing Discourse by IP is totally unsupported.

I would recommend doing the [standard install](https://meta.discourse.org/t/142537?silent=true), that way we can at least help you with the process.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2월 14, 2019, 1:41오전 UTC](https://meta.discourse.org/t/seeing-welcome-to-nginx-after-backup-restore/109108/9 "2019-02-14T01:41:11Z")

</div>

> [@Stephen](#):
>
> You probably need to speak to DigitalOcean about this, we can’t support their one-click installs here. They’re billed as being simpler, and that may be true if they’re willing to support it, but we can’t.

That’s true, but the biggest problem with their one-click install is that it doesn’t tell people that they should

```plaintext
cd /var/discourse
./discourse-setup

```

If you do that, it’s pretty much a [Standard Install](https://meta.discourse.org/t/142537?silent=true). (And if you don’t, you don’t get swap enabled, which will cause problems for 1 & 2GB Droplets, among other problems.)

This problem is really about the difficulty of moving from one host to another when you have https on, and that you can’t run let’s encrypt if the DNS doesn’t point to the new server. The “simple” solution is to `rsync` over `/var/discourse`, but that involves a handful of tiny little things that can go wrong.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2월 14, 2019, 1:42오전 UTC](https://meta.discourse.org/t/seeing-welcome-to-nginx-after-backup-restore/109108/10 "2019-02-14T01:42:33Z")

</div>

Which is all outside the scope of what we support here, and for good reason.

---

<div class="post-metadata">

### Author: ![PaulSolt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulsolt/32/120561_2.png) [@PaulSolt](https://meta.discourse.org/u/PaulSolt)
#### Post date: [2월 14, 2019, 1:51오전 UTC](https://meta.discourse.org/t/seeing-welcome-to-nginx-after-backup-restore/109108/11 "2019-02-14T01:51:42Z")

</div>

> [@Stephen](#):
>
> The only supportable configuration is from the [Standard Install Guide](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) which will incidentally bypass all of the issues you’re mentioning above.

That’s the missing guide I’ve been searching for, thanks. I didn’t realize that information wasn’t on the meta.discourse site. I’ll do the [standard install](https://meta.discourse.org/t/142537?silent=true).

Following the guide seems to have worked, thank you!

After getting discourse installed, I followed the steps to load my backup that I made from my older server.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [3월 16, 2019, 1:51오전 UTC](https://meta.discourse.org/t/seeing-welcome-to-nginx-after-backup-restore/109108/12 "2019-03-16T01:51:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
