On setting up Apache and IIS to share the same IP

Posted by miCRoSCoPiCeaRthLinG on Server Fault See other posts from Server Fault or by miCRoSCoPiCeaRthLinG
Published on 2010-03-08T06:15:26Z Indexed on 2010/03/08 6:21 UTC
Read the original article Hit count: 441

Filed under:
|
|
|

Hello, There are two different web-apps running on two (physically) different servers on our network... one of IIS and another one on Apache - both on port 80 since two machines are accessible by different IPs on our internal network.

Now I want to expose both these services to the world. My idea is to somehow make the incoming connection redirect to the appropriate server based on user's choice of subdomain.

Example

xxx.domain.com maps to the IIS (Internal IP: 1.2.3.4)

yyy.domain.com maps to Apache (Internal IP: 5.6.7.8)

To the world, both these servers will share the same public IP.

What kind of a configuration am I looking at and how do I go about trapping the subdomain requests and redirecting to the appropriate server?

Thanks, m^e

© Server Fault or respective owner

Related posts about iis

Related posts about apache