From owner-freebsd-questions Fri Sep 27 10:14:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC87137B401 for ; Fri, 27 Sep 2002 10:14:21 -0700 (PDT) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id B897743E6A for ; Fri, 27 Sep 2002 10:14:20 -0700 (PDT) (envelope-from fgleiser@cactus.fi.uba.ar) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by cactus.fi.uba.ar (8.12.3/8.12.3) with ESMTP id g8RHBiq4082233; Fri, 27 Sep 2002 14:11:45 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Fri, 27 Sep 2002 14:11:44 -0300 (ART) From: Fernando Gleiser To: Richard Lucas Cc: questions@freebsd.org Subject: Re: reverse proxy? In-Reply-To: <015a01c26584$fc8fb4c0$3200a8c0@winblowz> Message-ID: <20020927140547.A81915-100000@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-3.5 required=5.0 tests=IN_REP_TO,SUBJ_ENDS_IN_Q_MARK version=2.31 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 26 Sep 2002, Richard Lucas wrote: > > From my research it looks as if squid can do part of what I need but from > what I've read it can only forward requests to one server. I need something > that can forward requests to multiple servers depending on what is > requested. For example, if someone requested www.bleh.com it would forward > internally to 192.168.0.10 and www.blah.net would forward to 192.168.0.11. I > guess basically a reverse proxy that can do something like name based > virtual hosting. You can do that with squid, you need to set httpd_accel_host to 'virtual' and do some other configuration tricks. It is very simple and easy to do. Read the squid configuration guide (available at www.squid-cache.org) for the details. > > Can this be done with apache? And if so could someone point me in the right > direction on how to set something like this up. I think you can do hat with apache, but based on my experience, squid gives you better performance. YMMV, of course. Fer > > Thanks in advance for any help you can give. > > > -Richard > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message