Avatar of Chris Millard
Chris Millard
Flag for United Kingdom of Great Britain and Northern Ireland asked on

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

Avatar of undefined
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.
ASKER CERTIFIED SOLUTION
Chris Millard

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Matt V

That would also work.  So your hosting company is doing the reverse proxy in this case.
Chris Millard

ASKER
I found my own solution to the question
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck