# Run other websites on the same machine as 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:** [July 5, 2014, 8:36pm 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:** 432

<div class="post-metadata">

### Author: ![rrit](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@rrit](https://meta.discourse.org/u/rrit)
#### Post date: [March 3, 2022, 2:44pm UTC](https://meta.discourse.org/t/run-other-websites-on-the-same-machine-as-discourse/17247/432 "2022-03-03T14:44:24Z")

</div>

> [@Serve Discourse from a subfolder (path prefix) instead of a subdomain](https://meta.discourse.org/t/serve-discourse-from-a-subfolder-path-prefix-instead-of-a-subdomain/30507/119):
>
> So if there is an error, we must first locate it:
> 
> - External proxy
> - Nginx in Discourse container
> - Discourse itself

* * *

> [@okaeiz](#):
>
> we handled the SSL protocol using Nginx proxy manager (We commented out the port 443 exposing part in app.yml )

See:

> [@Discourse working with jwilder /nginx proxy & acme-companion](https://meta.discourse.org/t/discourse-working-with-jwilder-nginx-proxy-acme-companion/217059/6):
>
> […] "https://… […] Try configuring your outside proxy to connect to the http-url on Discourse Nginx and not https.

* * *

Do you use socket install like this:

> [@Serve Discourse from a subfolder (path prefix) instead of a subdomain](https://meta.discourse.org/t/subfolder-support-with-docker/30507/122):
>
> Sorry, I was referencing to a setup like this: Container config web\_only.yml: templates: # […] - "templates/web.socketed.template.yml" # […] #expose: # - "80:80" # http # - "443:443" # https External nginx-site.conf: server { listen 443 ssl default\_server; # […] location ~ ^/forum { proxy\_pass http://unix:/path-to-discourse/discourse/shared/web-only/nginx.http.sock:; proxy\_set\_header Host $http\_host; proxy\_http\_version 1.1; proxy\_set\_header X-Fo…

Then see: [How to debug a sub-folder Discourse install](https://meta.discourse.org/t/subfolder-support-with-docker/30507/119#how-to-debug-a-sub-folder-discourse-install-2)

---

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