Link to home
Start Free TrialLog in
Avatar of SheppardDigital
SheppardDigital

asked on

Redirect network traffic by hosting to another IP

I have a couple of servers in the office and only one external IP address.

Currently I'm directing all port 80 traffic to our Centos server.

The other server is running Windows Server 2012.

What I'd like to be able to do is redirect all port 80 traffic to the MS Server, and have it determine which server needs to deal with the request by the host in the header.

For example,

the MS server may deal with all requests for domain1.com, but the centos server may deal with all requests for domain2.com.

Is there an easy way to do this?
ASKER CERTIFIED SOLUTION
Avatar of Cliff Galiher
Cliff Galiher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SheppardDigital
SheppardDigital

ASKER

Thank you that helps, at least now I know what I'm looking for on Google.

It's probably best then if I have all port 80 traffic sent to the Centos server which is running apache, and use the mod_proxy module to redirect traffic to the windows server. I think this will be easier, because if I remember rightly I'm already using mod_proxy to redirect traffic from port 80 to Tomcat running on port 8080 (I just didn't understand it).

Thank you for pointing me in the right direction.