I want to have two servers hosted on the same computer with the same port. It would connect to the server corresponding to the domain that the client tries to connect to.
Example:
server1.net:80 -> port 81
server2.net:80 -> port 82
I want this to work with other protocols as well, not only http and https
Also one of them is an apache server and the other one is a node server
They would also have different SSL certificates