I have a VPS which has 1 IP. If I run two socket servers, one on port 8080 and the other on port 8081, is there a way I can map service1.mydomain.com to the socket server on port 8080 and service2.mydomain.com to the socket server on port 8081?
I am NOT running a webserver, rather a websocket server on port 8080 and a socket server on 8081.
I have seen this question asked before, but it always seems to be about Apache, where I could edit the VirtialHosts file. As I am not using Apache, I can't do this.
Is it possible to do this? Or am I going to have to keep using mydomain.com:8080 and mydomain.com:8081?
The server is running Debian 8.
Thanks