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

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 forum.mysite.com and I’d like to install another service at xyz.mysite.com. Is there a howto describing how to add an expection?

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”.

6 Likes

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