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 184.108.40.206, private ip of the hyper-v host is 220.127.116.11, vm1 18.104.22.168, vm2 22.214.171.124.
If you want to route 126.96.36.199:443 to just 188.8.131.52, then your firewall rules would do nat/port redirection to get it there. If you want to route 184.108.40.206:443 to 220.127.116.11, 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 18.104.22.168:443 to 22.214.171.124:443 if it sharepoint requests, or 126.96.36.199: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.