# Exécuter d'autres sites web sur la même machine que Discourse

**URL:** https://meta.discourse.org/t/run-other-websites-on-the-same-machine-as-discourse/17247
**Category:** Self-Hosting
**Tags:** how-to, advanced-setup
**Created:** [Juillet 5, 2014, 8:36 UTC](https://meta.discourse.org/t/run-other-websites-on-the-same-machine-as-discourse/17247 "2014-07-05T20:36:15Z")
**Posts on this page:** 1
**Showing post:** 182

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [Mars 11, 2018, 9:51 UTC](https://meta.discourse.org/t/run-other-websites-on-the-same-machine-as-discourse/17247/182 "2018-03-11T09:51:13Z")

</div>

The guide in the first post is great and, on the whole, still works just fine ☀

There are three things worth noting:

1. I initially missed some of the `app.yml` changes. There are **3 things** you need to change in your app.yml. If you miss any of these things it won’t work:

2. As others mentioned, I had to change the ssl cert and key names in the `discourse.conf`:

3. Turns out my site didn’t have a `dhparams.pem` key (dh stands for Diffie Hellman, there’s some good explanations of what this is [here](https://security.stackexchange.com/questions/45963/diffie-hellman-key-exchange-in-plain-english)). You can generate this yourself:

Some other things you may find useful:

- `sudo netstat -tulpn`: This will tell you what ports are being used

- `/var/log/nginx/error.log`: Is the location of the nginx log on ubuntu. This will tell you what the error is when you get a 502 Bad Gateway error.

- You may finish a `./launcher rebuild app`, excitedly go to your domain to see if it worked and be greeted with a depressing 502 Bad Gateway error. Before giving up in frustration, try restarting nginx one more time:

Now my [sandbox](https://discourse.angusmcleod.com.au/) is using nginx outside the container (although I haven’t added the extra website yet).

---

_[View the full topic](https://meta.discourse.org/t/run-other-websites-on-the-same-machine-as-discourse/17247)._
