[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 525
  • Last Modified:

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.
0
Chris Millard
Asked:
Chris Millard
  • 2
  • 2
1 Solution
 
Matt VCommented:
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.
0
 
Chris MillardAuthor Commented:
Actually I found an easier way to do it. My hosting company allows redirects, so what I did was open port 8080 on my router and forwarded it to tradewinds.local on port 80, and at my web hosting end I created a redirect for subdomain.tradewinds.com to go to myip:8080
0
 
Matt VCommented:
That would also work.  So your hosting company is doing the reverse proxy in this case.
0
 
Chris MillardAuthor Commented:
I found my own solution to the question
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now