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 ?
migrated from stackoverflow.com Apr 30 '11 at 6:02
This question came from our site for professional and enthusiast programmers.
Lets say public ip is 188.8.131.52, private ip of the hyper-v host is 184.108.40.206, vm1 220.127.116.11, vm2 18.104.22.168.
If you want to route 22.214.171.124:443 to just 126.96.36.199, then your firewall rules would do nat/port redirection to get it there. If you want to route 188.8.131.52:443 to 184.108.40.206, 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 220.127.116.11:443 to 18.104.22.168:443 if it sharepoint requests, or 22.214.171.124: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.