# NGINX proxy in front of the Docker container.errors

**URL:** https://meta.discourse.org/t/nginx-proxy-in-front-of-the-docker-container-errors/55668
**Category:** Self-hosting
**Created:** [January 12, 2017, 8:33pm UTC](https://meta.discourse.org/t/nginx-proxy-in-front-of-the-docker-container-errors/55668 "2017-01-12T20:33:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jeremiah\_Schultz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeremiah_schultz/32/66277_2.png) [@Jeremiah\_Schultz](https://meta.discourse.org/u/Jeremiah_Schultz)
#### Post date: [January 12, 2017, 8:33pm UTC](https://meta.discourse.org/t/nginx-proxy-in-front-of-the-docker-container-errors/55668/1 "2017-01-12T20:33:52Z")

</div>

follwing the directions here: [Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247)

Have the following errors:

> nginx: [warn] invalid parameter “spdy”: ngx\_http\_spdy\_module was superseded by ngx\_http\_v2\_module in /etc/nginx/conf.d/discourse.conf:9  
> nginx: [warn] invalid parameter “spdy”: ngx\_http\_spdy\_module was superseded by ngx\_http\_v2\_module in /etc/nginx/conf.d/discourse.conf:9  
> nginx: [warn] invalid directive “spdy\_headers\_comp”: ngx\_http\_spdy\_module was superseded by ngx\_http\_v2\_module in /etc/nginx/conf.d/discourse.conf:20  
> nginx: [warn] invalid directive “spdy\_keepalive\_timeout”: ngx\_http\_spdy\_module was superseded by ngx\_http\_v2\_module in /etc/nginx/conf.d/discourse.conf:21  
> nginx: [emerg] BIO\_new\_file(“/var/discourse/shared/standalone/ssl/ssl.crt”) failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/var/discourse/shared/standalone/ssl/ssl.crt’,‘r’) error:2006D080:BIO routines:BIO\_new\_file:no such file)  
> nginx: configuration file /etc/nginx/nginx.conf test failed

Any tips on fixing this?  
Thanks.

More info:  
amazon EC2  
ubuntu 16.04  
nginx installed via easyengine: [https://easyengine.io/](https://easyengine.io/)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [January 12, 2017, 8:50pm UTC](https://meta.discourse.org/t/nginx-proxy-in-front-of-the-docker-container-errors/55668/2 "2017-01-12T20:50:30Z")

</div>

> [@Jeremiah\_Schultz](#):
>
> /var/discourse/shared/standalone/ssl/ssl.crt

Looks like the problem is on this file

---

<div class="post-metadata">

### Author: ![Jeremiah\_Schultz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeremiah_schultz/32/66277_2.png) [@Jeremiah\_Schultz](https://meta.discourse.org/u/Jeremiah_Schultz)
#### Post date: [January 13, 2017, 2:33am UTC](https://meta.discourse.org/t/nginx-proxy-in-front-of-the-docker-container-errors/55668/3 "2017-01-13T02:33:25Z")

</div>

Yes since it doesn’t exist. And the issue of spdy value html2.0  
Too bad I don’t know what to do about it

---

<div class="post-metadata">

### Author: ![intagger](https://avatars.discourse-cdn.com/v4/letter/i/3bc359/32.png) [@intagger](https://meta.discourse.org/u/intagger)
#### Post date: [January 14, 2017, 11:28am UTC](https://meta.discourse.org/t/nginx-proxy-in-front-of-the-docker-container-errors/55668/4 "2017-01-14T11:28:38Z")

</div>

I think that you need to replace `spdy` with `http2` in `/etc/nginx/conf.d/discourse.conf`.  
And install a certificate 😉 it is simple with the [letsencrypt tool (aka certbot)](https://certbot.eff.org).

btw, I have updated [that wiki](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247) to support `http2` instead of deprecated `spdy`.
