# NGINX is Broken?

**URL:** https://meta.discourse.org/t/nginx-is-broken/134493
**Category:** Self-hosting
**Tags:** unsupported-install
**Created:** [November 27, 2019, 2:25am UTC](https://meta.discourse.org/t/nginx-is-broken/134493 "2019-11-27T02:25:40Z")
**Posts on this page:** 14
**Page:** 2

<div class="post-metadata">

### Author: ![BobHill74](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bobhill74/32/177388_2.png) [@BobHill74](https://meta.discourse.org/u/BobHill74)
#### Post date: [November 27, 2019, 7:08pm UTC](https://meta.discourse.org/t/nginx-is-broken/134493/21 "2019-11-27T19:08:08Z")

</div>

Rebuild did nothing, it’s still denying HTTPS and on top of that, I’m back to the NGINX welcome page on HTTP.

---

<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: [November 27, 2019, 7:12pm UTC](https://meta.discourse.org/t/nginx-is-broken/134493/22 "2019-11-27T19:12:41Z")

</div>

You definitely have nginx installed.

Have you tried  
apt purge nginx

or

dpkg -l |grep nginx

?

Once you kill nginx, what does `./discourse-doctor` say?

---

<div class="post-metadata">

### Author: ![BobHill74](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bobhill74/32/177388_2.png) [@BobHill74](https://meta.discourse.org/u/BobHill74)
#### Post date: [November 27, 2019, 7:16pm UTC](https://meta.discourse.org/t/nginx-is-broken/134493/23 "2019-11-27T19:16:07Z")

</div>

> [@pfaffman](#):
>
> apt purge nginx

Returned, nginx not installed

> [@pfaffman](#):
>
> dpkg -l |grep nginx

Returned, Nothing

> [@pfaffman](#):
>
> what does `./discourse-doctor` say?

All of the inputs (Like Email, web address) are blank  
And there’s 2 containers running on Ports: 80 → 80, 443 → 443, and 2222 → 22  
It says the discourse container app is running  
And it says the Discourse Version is NOT FOUND

---

<div class="post-metadata">

### Author: ![BobHill74](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bobhill74/32/177388_2.png) [@BobHill74](https://meta.discourse.org/u/BobHill74)
#### Post date: [November 27, 2019, 7:17pm UTC](https://meta.discourse.org/t/nginx-is-broken/134493/24 "2019-11-27T19:17:21Z")

</div>

Whoops, didn’t scroll down, let me read the output text and see what it says.  
EDIT: It says the same thing

---

<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: [November 27, 2019, 7:18pm UTC](https://meta.discourse.org/t/nginx-is-broken/134493/25 "2019-11-27T19:18:47Z")

</div>

> [@BobHill74](#):
>
> All of the inputs (Like Email, web address) are blank

Did you start this show by running `./discourse-setup`?

> [@BobHill74](#):
>
> And there’s 2 containers running on Ports: 80 → 80, 443 → 443, and 2222 → 22

What are they?

---

<div class="post-metadata">

### Author: ![BobHill74](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bobhill74/32/177388_2.png) [@BobHill74](https://meta.discourse.org/u/BobHill74)
#### Post date: [November 27, 2019, 7:20pm UTC](https://meta.discourse.org/t/nginx-is-broken/134493/26 "2019-11-27T19:20:49Z")

</div>

> [@pfaffman](#):
>
> Did you start this show by running `./discourse-setup` ?

You mean did I go through the setup process (which I did), or did I not run `./discourse-doctor` which is what I ran.

> [@pfaffman](#):
>
> What are they?

My mistake, there was only one, it is `4efab95a60b8`

---

<div class="post-metadata">

### Author: ![BobHill74](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bobhill74/32/177388_2.png) [@BobHill74](https://meta.discourse.org/u/BobHill74)
#### Post date: [November 27, 2019, 7:21pm UTC](https://meta.discourse.org/t/nginx-is-broken/134493/27 "2019-11-27T19:21:33Z")

</div>

Now the page on HTTP, just says it didn’t send any data, so now there’s not even an NGINX page.  
EDIT: We’re back to the nginx page  
EDIT2: Nevermind, we’re not.

---

<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: [November 27, 2019, 7:21pm UTC](https://meta.discourse.org/t/nginx-is-broken/134493/28 "2019-11-27T19:21:39Z")

</div>

What does `docker ps` show?

---

<div class="post-metadata">

### Author: ![BobHill74](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bobhill74/32/177388_2.png) [@BobHill74](https://meta.discourse.org/u/BobHill74)
#### Post date: [November 27, 2019, 7:22pm UTC](https://meta.discourse.org/t/nginx-is-broken/134493/29 "2019-11-27T19:22:09Z")

</div>

The exact same container as the text file.

---

<div class="post-metadata">

### Author: ![BobHill74](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bobhill74/32/177388_2.png) [@BobHill74](https://meta.discourse.org/u/BobHill74)
#### Post date: [November 27, 2019, 7:31pm UTC](https://meta.discourse.org/t/nginx-is-broken/134493/30 "2019-11-27T19:31:31Z")

</div>

Maybe a reverse proxy with [caddy](https://caddyserver.com/) would be better in this scenario?

---

<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: [November 27, 2019, 10:35pm UTC](https://meta.discourse.org/t/nginx-is-broken/134493/31 "2019-11-27T22:35:30Z")

</div>

I was wanting the name of what it was. The is number is meaningless.

I’ve had success with caddy in the past. It’ll likely have the same problem, though.

---

<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: [November 28, 2019, 6:32am UTC](https://meta.discourse.org/t/nginx-is-broken/134493/32 "2019-11-28T06:32:37Z")

</div>

Here’s a suggestion.

Go sign up for the $5 droplet at DigitalOcean. Follow the install guide to the letter, no copying of additional certificates or anything else.

DO droplets are prorated, if you follow the guide (which takes 30 minutes or less) the cost of proving the install is $0.02. If you don’t want the instance afterwards just hit the destroy button.

If it still fails then there’s something we can begin to troubleshoot.

If it works then it proves this isn’t a discourse issue. If you choose to use a more complicated environment you unfortunately also accept responsibility for the extra challenges it presents. The [standard install](https://meta.discourse.org/t/142537?silent=true) has been proven on the Ubuntu image at DO and their Network policy doesn’t cause issues with Lets Encrypt (but does occasionally need moderate remediation to send email).

Note that if you’ve been requesting and re-requesting the same certificate name it’s possible that Let’s Encrypt has put that particular FQDN on cooldown.

---

<div class="post-metadata">

### Author: ![BobHill74](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bobhill74/32/177388_2.png) [@BobHill74](https://meta.discourse.org/u/BobHill74)
#### Post date: [November 28, 2019, 3:51pm UTC](https://meta.discourse.org/t/nginx-is-broken/134493/33 "2019-11-28T15:51:13Z")

</div>

Well I finally got it. Here’s what I did. I installed Caddy, and setup a proxy to redirect all connections from the URL to localhost:444, but that wasn’t it. I went into the app.yml and changed the Port to this

```plaintext
- "81:80" - HTTP moved to port 81 to reserve for Caddy
-"444:443" -Caddy Will Handle HTTPS

```

Then, when I go to the website, it’ll load in and not deny connection to HTTPS!  
Thank you to everyone who helped and left suggestions!

> [@Stephen](#):
>
> Go sign up for the $5 droplet at DigitalOcean

I will definitely be doing this, if I have to install discourse again.

---

<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: [December 28, 2019, 3:51pm UTC](https://meta.discourse.org/t/nginx-is-broken/134493/34 "2019-12-28T15:51:49Z")

</div>

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

[Previous page](https://meta.discourse.org/t/nginx-is-broken/134493.md?page=1)
