One IP, two servers, two (sub)domains. Reverse proxy?
Posted: Fri Mar 17, 2017 10:41 am
Hey guys.
I'm hosting a factorio server with a couple of friends of mine. The thing is, I'm playing with and hosting for two different groups.
I know I could just simply host on two different ports, but I would prefer that people could just use some address server1.fact.com or server2.fact.com without having to remember the ports.
Do any of you know, if I can somehow set up a reverse proxy, checking what domain people are trying to connect to, and then passing the UDP packages to the right instance of factorio? I've considered NGINX, but I dont really know that much about it, and most of what I've read seems to indicate that UDP proxying can't check the target address, and perhaps cant even handle the way a game sends information.
Does anyone in here know anything about it?
Thanks
/Morten
I'm hosting a factorio server with a couple of friends of mine. The thing is, I'm playing with and hosting for two different groups.
I know I could just simply host on two different ports, but I would prefer that people could just use some address server1.fact.com or server2.fact.com without having to remember the ports.
Do any of you know, if I can somehow set up a reverse proxy, checking what domain people are trying to connect to, and then passing the UDP packages to the right instance of factorio? I've considered NGINX, but I dont really know that much about it, and most of what I've read seems to indicate that UDP proxying can't check the target address, and perhaps cant even handle the way a game sends information.
Does anyone in here know anything about it?
Thanks
/Morten