• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1052
  • Last Modified:

how to redirect request to multiple server behind a router?

I'm trying to redirect multiple request to different domain name to different server behind my router.

For example: I wan't www.name1.com to be redirected to 192.168.1.2 and www.name2.com to 192.168.1.3.

The big problem is that both domain name point toward the same address (the router address) and then it has to be redirected to the right server (behind to router)... Another problem is that i'm using dynamic address which means that I cannot point each domain name to a different ip address and then use ip forwarding, since I only got one IP.

It has to use the domain name to resolve the finale ip address on the private part of my LAN. Someone already told me that one way to do this would be to use an application-level gateway (like a proxy) between the router and my servers. That's fine with me but I don't know anything about proxy. Anyone have ideas on how to do this (or on any other way to do it)?
0
PosiDan
Asked:
PosiDan
  • 5
  • 2
  • 2
  • +1
1 Solution
 
hawgpigCommented:
Are you running a win2k server???
I'm pretty sure you can do this with IIS....
you need to send all port 80 traffic to the server and set up the server with a.......virtual web site???
Wish I could remember the commands....but I'm not positive....I could probably figure it out if I was on site.....but can't do it from memory....
you might want to ask this question in win2k OS
Good Luck
0
 
PosiDanAuthor Commented:
That would be one way to do it, but it would mean that when the page for www.name1.com is loaded, a redirection is made to www.name1.com:1501 (anyport would do the job) then do a redirection on my router. But there are a lot of port used by only one server (web, sql...) and each one will have to be redirected to the right server... That will work but it's not clean.
0
 
Fatal_ExceptionCommented:
Why can't you just define and forward the port..??  In other words..  www.publicaddress.com:8080 forward to one machine, and www.publicaddress.com:80 to the other machine...  This is all setup in the router and your router will forward the packets to the proper internal NIC specified in the port trigger...

I do this same thing, but with my specific IP address..  (even though it is dynamic at home, it hardly ever changes...)

FE
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
Fatal_ExceptionCommented:
Ok..  did not read your second comment..  
0
 
hawgpigCommented:
Yea I knew this could be done....
This link should help alot...
http://www.experts-exchange.com/Operating_Systems/WinXP/Q_20646726.html?query=host+headers+iis&searchType=all
If you are using IIS 5.0 or above this should work
It was called HOST HEADERS...
Man I'm loosing it...
Good Luck
0
 
Fatal_ExceptionCommented:
Yes..  host headers might work in this case, as they map websites from the IIS console..  In fact, I use them on my web server...  Not hard to configure either..  But I use them to map to a single IP address...  never tried it with multiple servers...
0
 
PosiDanAuthor Commented:
I think that the virtual host is going to be the simplest option. I'm simply going to redirect all the reqest to port 80 to the same server (it works under apache) and then use a standard redirection to www.name1.com:1501 which is going to point to my router address and then in the router the 1501 port is going to be redirected to the right server.

Not an easy solution, but there is a good reason for it. I was using a T1 connection (for arround 1200 CAN$ per month) and I found a router (SME-575 by snapgear) that can do load balancing with two internet connection of any type and maintain by itself (the firmware of the router supports it) a DDNS server database for both connection. With the proper DDNS setup both connection are pointing toward the same router and I have the same stability and speed that I had with the T1. It even has a linux based firewall embeded. And all that for 1000 US$ (you can even try it for a month for free, and they really answer to the technical support question you ask!). Since I now use two cheap internet ADSL and Cable connection (from two different ISP for more security) I pay less than 150 CAN$ a month...

I'm sure a lote of small business are in need of cheap, fast and reliable internet connection. That is the best way i've found yet.
0
 
Fatal_ExceptionCommented:
Actually, since you mention it, and I wondered if this was what you were doing, I use the same setup at my office...   We are running a Dual Wan Router from Xincom (approx $300) and a Cable/SDSL solution..  Plenty of bandwidth and redundancy, which is what I love about it..  

When you set it up though, monitor the connections.  I believe that model (like mine) has management alerts for DOS attacks, disconnects, etc..   Very useful features..

Anyway, I would think your solution will work just fine..  
0
 
infotraderCommented:
yes that'll work.  I used to do it all the time until I've consolidated all my websites to a single IIS server (so the outside browser won't have a header that reads http://my.domain.com:1020).

I vaguely remember that ISA server by Microsoft have a url redirection functionality that would work as well, perhaps that might be another solution.  Anyway, having both a port forwarding rule turned on by the router, and url forwarding turned on in IIS, that should resolve your problem as suggested.

- Info
0
 
Fatal_ExceptionCommented:
Thanks..

FE
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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