Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple servers and port forwarding

Status
Not open for further replies.

NorthStarDA

IS-IT--Management
Mar 16, 2004
614
US
this should be a simple question, I have a linksys router and i am using port forwarding to mail/dns/web servers- but I have added a second web server. Question is, i want certain requests to go to server1 and certain requests to go to server2 based on DNS name, is there any way to do this since i want both servers to use port 80?
 
thanks for the reply, that is what i feared- know how i can do this without getting another IP from my ISP and setting up a whole new network?
 
Both IIs and Apache offer ways on a single machine, with a single IP, to host different web sites.

And apache discussion, for example:

With two seperate physical machines, you have two local hosts, and other than using for the second physical machine something other than port 80 (8080 is popular) I do not think it can be done.

It certainly is not supported by the router you have: If you would make two port forwarding entries to different local IPs with the same port (80 in this instance) the second would be ignored.
 
What you are looking for, i suspect, is round-robin load balancing. not a feature usually found on home-network gear. If I am understanding correctly, you would like one IP to alternate sending traffic to two web servers.
 
well im not really looking to load balance at this point, more like 'domain forwarding' if there is such a thing. I have 1 ip address and 2 web servers.

--> web server 1
--> web server 2

both running on port 80, seems simple enough, but apparently you cannot do this using NAT? seems like there should be a router that did port forwarding, or DNS forwarding- but maybe it seems that should be possible, because i need it to be.
 
Sorry,
You're going to have to get a second router and another IP.

Incoming traffic to the router is IP & port#. The router does not see the domain name, that is resolved externally by public DNS servers to an IP address.

MCSE CCNA CCDA
 
bcastner gave you the right advice, assuming that you're using one of those (and maybe some other) web servers. One web server can host multiple domains with only 1 public IP address using name based virutual hosting. (That's how it's reffered to with Apache anyway, IIS should be similar but probably slightly different nomenclature). The short version of the way this works is that all port 80 requests get sent to the 1 webserver. The webserver then decides what domain to serve up, based on the domain name that was requested.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top