Forward external web traffic to internal web server based on URL?
I have two websites which are hosted externally:-
contoso.com
tradewinds.com
I have two internal IIS servers:-
contoso.local
tradewinds.local
I have a working A record for subdomain.contoso.com - the IP address is the static IP of my broadband router. This router is forwarding port 80 to the IP address of contoso.local
My question is this. I want to now have an A record for subdomain.tradewinds.com, but traffic to this should be forwarded to tradewinds.local which of course is behind the same public IP on the same router.
What's the easiest way to do this, without the need for an additional public IP on my router.
DNSMicrosoft IIS Web ServerRouters
Last Comment
Chris Millard
8/22/2022 - Mon
Matt V
The only way to do this would be with a reverse proxy. You would need this box inside and route port 80 to that box. The reverse proxy could then determine which host to send the domain traffic to.