Serving Meteor on main domain and Apache on subdomain independently
Posted
by
kinologik
on Server Fault
See other posts from Server Fault
or by kinologik
Published on 2012-09-05T20:16:24Z
Indexed on
2012/09/05
21:39 UTC
Read the original article
Hit count: 463
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?
© Server Fault or respective owner