I'm running a node script on my dedicated server; it is running on port 9001; the thing is that it is reacheble on any domain hosted on my server; if I have 3 domains:
www.domain1.com
www.domain2.com
www.domain3.com
the node script answers on port 9001 of each one of them:
www.domain1.com:9001
www.domain2.com:9001
www.domain3.com:9001
since this node script is used only by the website in domain1, how can I limit it to listen only on www.domain1.com:9001?
I would like in the future to setup and run a different node script for every domain, but each one of them listening on port 9001