Answer the question
In order to leave comments, you need to log in
How to change listening port from 80 to arbitrary?
Greetings! I have such a situation, there is a server running on node.js and you need to connect 2 domains to it, and therefore you need to listen on different ports or is it organized somehow differently? Tell me please.
Answer the question
In order to leave comments, you need to log in
and you need to connect 2 domains to it, and therefore wiretapping needs to be done on different ports, or is it organized somehow differently
Check the req.url field, parse it, take a domain name from it, and you can make at least 100 sites on one port. Or reverse proxy on several ports: nginx, haproxy.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question