Serving Meteor on main domain and Apache on subdomain independently
- by kinologik
I'm running a Meteor server on my Ubuntu server. But problems arise when I try to have Apache serving a subdomain on the same server.
main.domain.com - Meteor
sub.domain.com - Apache
Meteor is running on port 80. I have previously tried to have Meteor run on port 3000 and served in reverse proxy with Nginx, but Meteor started to behave badly (tcp/websockets issues) and I spent too many evenings and nights to persist for my own sake.
So I reverted my setup to have Meteor being the main server (app works fine), and then install Apache the serve my subdomain. The problem is I cannot have Apache serve on port 80 too since it seems to overrun my Meteor server.
From experience, I try to stay away from reverse-proxying Meteor, but I'm not knowledgeable enough to get Apache to dedicate itself to my subdomain and without overwhelming "everything port 80" on my server.
How can I have both services behave with each other in this kind of setup?