From owner-freebsd-isp@FreeBSD.ORG Mon Jul 26 23:01:33 2004 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50FF016A4CE for ; Mon, 26 Jul 2004 23:01:33 +0000 (GMT) Received: from smtp.uol.com.br (smtpout1.uol.com.br [200.221.11.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9A4A43D48 for ; Mon, 26 Jul 2004 23:01:31 +0000 (GMT) (envelope-from antonio.torres@newspace.net.br) Received: from thinkpad.newspace.net.br (200-221-55-15.speedy.speeduol.com.br [200.221.55.15]) by scorpion1.uol.com.br (Postfix) with ESMTP id BD436A505 for ; Mon, 26 Jul 2004 20:01:29 -0300 (BRT) Message-Id: <6.1.2.0.2.20040726195150.025ab640@mail.newspace.net.br> X-Sender: antonio@mail.newspace.net.br X-Mailer: QUALCOMM Windows Eudora Version 6.1.2.0 Date: Mon, 26 Jul 2004 20:01:03 -0300 To: freebsd-isp@freebsd.org From: Antonio Torres In-Reply-To: <000301c470ed$91015440$5b01a8c0@i8000> References: <000301c470ed$91015440$5b01a8c0@i8000> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: Apache - reverse proxy with freebsd X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jul 2004 23:01:33 -0000 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)] ServerName www.domain.com ServerAdmin webmaster@domain.com ProxyPass / http://192.168.0.171/ ProxyPassReverse / http://192.168.0.171/ ServerName www.domain2.com ServerAdmin webmaster@domain2.com ProxyPass / http://192.168.0.172:81/ ProxyPassReverse / http://192.168.0.172:81/ 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