From owner-freebsd-questions@FreeBSD.ORG Sat Jan 31 13:39:43 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B29510656BA for ; Sat, 31 Jan 2009 13:39:43 +0000 (UTC) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id DFD578FC0C for ; Sat, 31 Jan 2009 13:39:42 +0000 (UTC) (envelope-from scrappy@hub.org) Received: from localhost (unknown [200.46.204.183]) by hub.org (Postfix) with ESMTP id D35A95360EF for ; Sat, 31 Jan 2009 09:23:36 -0400 (AST) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 33618-09 for ; Sat, 31 Jan 2009 09:23:36 -0400 (AST) Received: by hub.org (Postfix, from userid 1002) id 6ACBF5360DB; Sat, 31 Jan 2009 09:23:36 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by hub.org (Postfix) with ESMTP id 696AA5360BF for ; Sat, 31 Jan 2009 09:23:36 -0400 (AST) Date: Sat, 31 Jan 2009 09:23:36 -0400 (AST) From: "Marc G. Fournier" To: freebsd-questions@freebsd.org Message-ID: <20090131091825.R90262@hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Load balancing multiple virtual hosts on 1 IP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jan 2009 13:39:43 -0000 Simple: is it possible? I have two VMs that contain the same content, on two different IPs .. I want to setup a third VM with something like haproxy on it that will take the URL (http://domain1) and pull the content from one or the other ... So far, all works well if I only have one virtual host, but as soon as I add a second one (http://domain2), when I try to go to http://domain2, it pulls up the content for domain1 also, as if I was going to http://IP instead. Is there a way to set this up (with haproxy, or some other software), that it will actually pass the URL through to the backend apache server and load up the right content? Or is this a limitation in the protocol itself?/ Thx ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664