From owner-freebsd-questions Wed Jan 2 12:22:10 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp011.mail.yahoo.com (smtp011.mail.yahoo.com [216.136.173.31]) by hub.freebsd.org (Postfix) with SMTP id D834337B41D for ; Wed, 2 Jan 2002 12:22:06 -0800 (PST) Received: from ci592716-c.valleyst1.ky.home.com (HELO Kaiser) (24.251.253.28) by smtp.mail.vip.sc5.yahoo.com with SMTP; 2 Jan 2002 20:22:06 -0000 Date: Wed, 2 Jan 2002 15:22:15 -0500 From: Donnie Jones To: Jan Grant Cc: freebsd-questions@freebsd.org Subject: Re: Two domains, only one real IP address. Message-Id: <20020102152215.72d6188f.donniejones18@yahoo.com> In-Reply-To: References: <20020102080755.77ff04f4.donniejones18@yahoo.com> X-Mailer: Sylpheed version 0.6.6 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Wed, 2 Jan 2002 14:12:56 +0000 (GMT) Jan Grant wrote: > On Wed, 2 Jan 2002, Donnie Jones wrote: > > > I have two domains and two httpd servers on my internal LAN. My > > network is set up where I have the real IP address going to the > > FBSD-4.4 gateway then to an ethernet switch, and onto the two > > separate httpd servers (the httpd servers IP's are 192.168.0.10 and > > 192.168.0.11). > > > > I would like for my FBSD gateway to redirect, route, or somehow send > > the httpd requests from each domain to their respective httpd server > > on the internal LAN. Also, I wouild prefer to not have to run > > apache on the FBSD gateway, so I think that may rule out "Virtual > > Hosts" on the gateway computer. > > > > I am unsure how to get the FBSD gateway to filter the httpd requests > > from the two separate domains to be sent to the individual httpd > > servers on the internal LAN? > > Don't be so quick to rule out virtual hosting; that's an HTTP thing, not > a purely apache-based one. Install a lightweight web proxy that > understands this on the gateway and proxy the contents from each of the > internal servers. > What web proxy programs would you recommend? > Apache's as good a choice for this as any other (unless you have a huge > amount of traffic expected). Are you saying to install apache on the gateway computer? And, to use apache as the web proxy? or just for the virtual hosting? > > The problem with doing this at layer 3 (ie, with IPFW) is that > name-based virtual hosting relies on the Host: HTTP request header; > there's no guarantee that this will be sent in the same packet as the > start of the web request. Thus, you'd have to defer all > packet-forwarding until you know where the traffic is supposed to go > (which will require you to ACK it in that case, anyway). > > > -- > jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ > Tel +44(0)117 9287088 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk > stty intr ^m > I am unsure what you're talking about in this last paragraph (most likely due to my own ignorance). But, I am still confused how the gateway computer can be set up to know to send the httpd requests to the respective httpd server on the internal LAN? Would the web proxy on the gateway computer be able to know which httpd server to send the httpd requests for each domain? Thanks for the help, -Donnie _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message