# Using Multiple Websites with Nginx + Discourse

**URL:** https://meta.discourse.org/t/using-multiple-websites-with-nginx-discourse/84467
**Category:** Self-hosting
**Created:** [April 3, 2018, 2:19pm UTC](https://meta.discourse.org/t/using-multiple-websites-with-nginx-discourse/84467 "2018-04-03T14:19:35Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [April 3, 2018, 3:43pm UTC](https://meta.discourse.org/t/using-multiple-websites-with-nginx-discourse/84467/2 "2018-04-03T15:43:39Z")

</div>

Follow these instructions to set up an instance of Nginx on the host:

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247):
>
> @pfaffman edited this heavily 2022.02.24. Blame me if it’s broken. If you want to run other websites on the same machine as Discourse, you need to set up an extra NGINX or HAProxy proxy in front of the Docker container. NOTE: This is for advanced admins This guide assumes you already have Discourse working - if you don’t, it may be hard to tell whether or not the configuration is working. You cannot use ./discourse-setup to set up Discourse if another server is using port 80 or 443. You will…

Once this is complete, you can configure this Nginx instance to also serve any other domain you want, either directly or by proxying to another server 🙂

---

_[View the full topic](https://meta.discourse.org/t/using-multiple-websites-with-nginx-discourse/84467)._
