Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jul 2004 20:01:03 -0300
From:      Antonio Torres <antonio.torres@newspace.net.br>
To:        freebsd-isp@freebsd.org
Subject:   Re: Apache - reverse proxy with freebsd
Message-ID:  <6.1.2.0.2.20040726195150.025ab640@mail.newspace.net.br>
In-Reply-To: <000301c470ed$91015440$5b01a8c0@i8000>
References:  <000301c470ed$91015440$5b01a8c0@i8000>

next in thread | previous in thread | raw e-mail | index | archive | help
At 16:45 23/7/2004, you wrote:
>Hi
>
>Currently I am running a standard setup with NameBased Virtualhosts with
>HTTP 1.1 with a couple of Vhosts. Each has the same public IP.
>
>What I would like to do:
>
>         - assign each vhosts a unique RFC1918 internal address
>         - do some nat / reverse proxy magic on the freebsd box (the
>webserver itself)
>         - I want to use the same public IP
>
>Is there a solution for that? What I could not figure out, how the
>reverse proxy could distinghish / split up the http 1.1 individual
>domains to internal ips.
>
>Thanks for hints,
>
>Arie
Let me see if I understood...

You have as Apache(real IP) front-end to a several Apaches(RFC1918 IPs) in 
a DMZ ?

You can use the standard Apache Virtual Hosts plus Proxy/Reverse Proxy:

[in production httpd.conf fragment(domainnames changed)]
<VirtualHost *>
     ServerName www.domain.com
     ServerAdmin webmaster@domain.com
         ProxyPass / http://192.168.0.171/
         ProxyPassReverse / http://192.168.0.171/

</VirtualHost>

<VirtualHost *>
        ServerName www.domain2.com
        ServerAdmin webmaster@domain2.com
        ProxyPass / http://192.168.0.172:81/
        ProxyPassReverse / http://192.168.0.172:81/
</VirtualHost>

As You see You can also change port-number...
a read on a Apache Docs can explain in more details these examples...

[]s
Antonio Torres
antonio.torres@newspace.net.br



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.1.2.0.2.20040726195150.025ab640>