I have two separate web servers with two different internal IP addresses on a network with only one public IP address. One is Windows Small Business Server 2011 and the other is a new e-mail encryption gateway appliance.
I have subdomains configured for remote.domain.com and securemail.domain.com both pointing to the same public IP. I need both of these subdomains to point to the correct internal server both on port 80.
I've configured forward lookup zones on the SBS server pointing to the appropriate IP addresses. I have a SonicWall NSA 220 firewall. I had firewall rules to redirect 80 to the SBS server, but I've set up an overriding rule to redirect 80 to the gateway appliance until I can get both services operating concurrently.
I referenced this thread, but my situation is different enough that the responses to it don't apply.
Thanks in advance!
The solution in the end was to host the e-mail gateway appliance's web server on a different port. This is not ideal, but, since most of the end users who would access it will do so via clicking a link in an e-mail, it's sufficient.
No form of redirect will work with two separate internal servers and only one external IP.
I've done this with pfSense and the Mod_Security+Apache service with no problems for quite some time now. There is something like 15 VMs all running various web servers / web based consoles for software appliances, all on ports 80 or 443 with everything behind 1 public IP.