IDNetters Forums

Technical News & Discussion => Windows News & Discussion => Topic started by: EvilPC on May 07, 2008, 22:29:54

Title: 1 IP Address - 2 Web Servers
Post by: EvilPC on May 07, 2008, 22:29:54
I have a single static IP Address.. In my router I have port 80 open to my IIS server.

I also have an Apache web server... Is there any way to send some requests to the IIS server and some to the Apache ??  I don't want to use different port numbering... ie port 80 -> IIS  port 8080 -> Apache

Any ideas ??

Thanks
Title: Re: 1 IP Address - 2 Web Servers
Post by: kinmel on May 07, 2008, 22:41:30
Do you have to use IIS?  Apache will serve many Virtual Hosts, all through Port 80 on one IP address.

Title: Re: 1 IP Address - 2 Web Servers
Post by: EvilPC on May 07, 2008, 23:23:55
I need to have IIS !!  Apache is included on one of the network devices.. Would be nice to use that as well.

May look and see if it's possible to change the Apache port number..  Might be the easiest option...
Or ask IDNET for another IP Address. (assuming my 2700HGV will support multiple IP Addresses and allow me to map them to internal devices)
Title: Re: 1 IP Address - 2 Web Servers
Post by: Rik on May 08, 2008, 08:43:49
Quote from: EvilPC on May 07, 2008, 23:23:55
Or ask IDNET for another IP Address.

ISTR the price is quite high...
Title: Re: 1 IP Address - 2 Web Servers
Post by: EvilPC on May 08, 2008, 18:55:04
Sort.. I've changed to port on the other device..

That will do for now !!

THANKS :)
Title: Re: 1 IP Address - 2 Web Servers
Post by: Sebby on May 08, 2008, 22:39:54
Good to hear. :thumb:
Title: Re: 1 IP Address - 2 Web Servers
Post by: Dangerjunkie on May 09, 2008, 07:44:57
Hi,

I *really* recommend not exposing an unprotected IIS server to the public Internet.

There's a module for Apache called mod_proxy that you can set to be a "reverse proxy." A reverse proxy brings multiple web servers together into one address space. for example:

www.myserver.com -> 192.168.0.21/
www.myserver.com/webmail -> 192.168.0.30/squirrelmail
www.myserver.com/groupware -> 192.168.0.50/egroupware


All requests go to the Apache server then it forwards any that it needs to proxy to the appropriate server and returns the response.

The person requesting the pages sees a single, slick server which appears to do everything rather than a patchwork of different servers. There is also the advantage that you have the Apache server between the internet and the IIS box so for many attacks a hacker would have to compromise the Apache box and then use it to get to the IIS one (a far harder exploit to carry off.) You still need to make sure your IIS server is hardened against URL and SQL injection attacks.

Cheers,
Paul.

Title: Re: 1 IP Address - 2 Web Servers
Post by: Lance on May 09, 2008, 08:01:55
:karmic: advice, Paul!  :)
Title: Re: 1 IP Address - 2 Web Servers
Post by: Rik on May 09, 2008, 09:03:59
I agree.  :thumb: :karma:
Title: Re: 1 IP Address - 2 Web Servers
Post by: EvilPC on May 09, 2008, 20:32:05
The IIS server is protected.. Not had any issues for the last few years !

Good advice though.