filter / directing URLs coming onto a network

Posted by Jon on Server Fault See other posts from Server Fault or by Jon
Published on 2010-01-10T10:52:22Z Indexed on 2010/03/18 14:01 UTC
Read the original article Hit count: 348

Filed under:

Hi all,

I an not sure if this is possible or not but what i would like to do is as follows:

I have one IP address (dynamic using zoneedit.com to keep it upto date). I have one webserver running my main site which is an Ubuntu machine running Apache. I also have a windows 2008 server running another site. Just to confuse things I also run part of my Apache site on the windows server, currently using proxypassreverse to get the information from it. So it looks something like this:

IP 1.2.3.4

maps to mydomain.com as well as myotherdomain.com

All requests that come into port 80 are forwarded to the Apache box and I use Virtualhost settings to proxy the windows sites where needed.

so mydomain.com is an Apache site

mydomain.com/mywindowssection is the Apache server using proxypassreverse to get part of the site from the Windows server

myotherdomain.com uses Apache and proxypassreverse to get the whole site.

What I would like to be able to do is forward all http requests that come into my network to one machine that figures out who should be serving that content. so:

mydomain.com would go to the Apache machine myotherdomain.com would go the windows machine.

I am just in the process of setting up an Astaro gateway (never done this before so taking a while to configure) as my firewall, dns, dhcp etc, don't know if this can handle it. I have the capacity to run a VM on the network if a seperate box would be needed for this process as well.

Thanks for any and all feedback.

Jon

© Server Fault or respective owner

Related posts about url-routing