Add subdomain exception to nginx to host another site on same host

(Ted Strauss) #1

I am setting up another web service on the same host as discourse.
I would like to add an exception to the nginx config so that discourse ignores requests to that subdomain, and the routing can be handled by another process.
Let’s say I have discourse on and I’d like to install another service at Is there a howto describing how to add an expection?

(Matt Palmer) #2

Don’t fiddle with the Discourse-internal nginx config like that. It’ll end in tears. Add another nginx as a forward proxy and have that one decide whether to send the request to Discourse or your other service based on the hostname. There’s a howto for that, something about “running other sites on the same machine”.

(Ted Strauss) #3

This one: Running other websites on the same machine as Discourse