so first here is the architecture i'm planning :
The question is simple : Is that is possible and how manage routing in HyperV to route the 443 port on both VM or better on the right vm ?
This question came from our site for professional and enthusiast programmers.
Lets say public ip is 126.96.36.199, private ip of the hyper-v host is 188.8.131.52, vm1 184.108.40.206, vm2 220.127.116.11.
If you want to route 18.104.22.168:443 to just 22.214.171.124, then your firewall rules would do nat/port redirection to get it there. If you want to route 126.96.36.199:443 to 188.8.131.52, again it is firewall rules.
Hyper-v does allow vlan tagging so you can bind the public IP straight into a VM even if the Hyper-V host is on a private IP (assuming your network infrastructure allows)
If you are trying to direct 184.108.40.206:443 to 220.127.116.11:443 if it sharepoint requests, or 18.104.22.168:443 if it is an Apache request, well that isn't something Hyper-V (or any VM platform) can do. You can probably get it working using Squid to intercept the traffic and direct the request based on the incoming domain, but that requires another host in front of your two webservers.