1 IP Address - 2 Web Servers

Started by EvilPC, May 07, 2008, 22:29:54

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

EvilPC

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

kinmel

Do you have to use IIS?  Apache will serve many Virtual Hosts, all through Port 80 on one IP address.

Alan  ‹(•¿•)›

What is the date of the referendum for England to become an independent country ?

EvilPC

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)

Rik

Quote from: EvilPC on May 07, 2008, 23:23:55
Or ask IDNET for another IP Address.

ISTR the price is quite high...
Rik
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.

EvilPC

Sort.. I've changed to port on the other device..

That will do for now !!

THANKS :)

Sebby


Dangerjunkie

#6
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.


Lance

Lance
_____

This post reflects my own views, opinions and experience, not those of IDNet.

Rik

Rik
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.

EvilPC

The IIS server is protected.. Not had any issues for the last few years !

Good advice though.