# Install on vps problem?

**URL:** https://meta.discourse.org/t/install-on-vps-problem/85648
**Category:** Self-hosting
**Created:** [April 18, 2018, 6:58pm UTC](https://meta.discourse.org/t/install-on-vps-problem/85648 "2018-04-18T18:58:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Brekila1312](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@Brekila1312](https://meta.discourse.org/u/Brekila1312)
#### Post date: [April 18, 2018, 6:58pm UTC](https://meta.discourse.org/t/install-on-vps-problem/85648/1 "2018-04-18T18:58:33Z")

</div>

If port 80 and 443 are already taken, how do i make discourse use other ports?

---

<div class="post-metadata">

### Author: ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)
#### Post date: [April 18, 2018, 7:16pm UTC](https://meta.discourse.org/t/install-on-vps-problem/85648/2 "2018-04-18T19:16:39Z")

</div>

You can configure the other web server to proxy traffic to discourse, for example:

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247?source_topic_id=19514):
>
> @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…

> [@Set up Discourse on a server with existing Apache sites](https://meta.discourse.org/t/how-to-set-up-discourse-on-a-server-with-existing-apache-sites/30013):
>
> It’s not as daunting as it sounds! While this may sound a bit intimidating at first, it’s really not all that bad. You basically need to do two things: Install HAProxy (or an alternative) which will take over port 80 and then divert your Discourse traffic to your docker container, and all your other sites to your usual Apache set-up. Let Apache know which port to listen for. While this is only a rough guide, it should do a good job of pointing you in the right direction. Let’s get star…

---

<div class="post-metadata">

### Author: ![Brekila1312](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@Brekila1312](https://meta.discourse.org/u/Brekila1312)
#### Post date: [April 19, 2018, 8:26pm UTC](https://meta.discourse.org/t/install-on-vps-problem/85648/3 "2018-04-19T20:26:37Z")

</div>

this file app.iml solves problems that I do not have in the container folder
