From owner-freebsd-stable@FreeBSD.ORG Mon Mar 22 10:54:21 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A440F16A4CE for ; Mon, 22 Mar 2004 10:54:21 -0800 (PST) Received: from kanga.bgp4.net (kanga.bgp4.net [210.18.204.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFF8043D39 for ; Mon, 22 Mar 2004 10:54:20 -0800 (PST) (envelope-from ciscogeek@bgp4.net) Received: from bgp4.net (ip68-106-237-143.ph.ph.cox.net [68.106.237.143]) by kanga.bgp4.net (8.12.9p2/8.12.9) with ESMTP id i2MIsGgr041100; Mon, 22 Mar 2004 18:54:16 GMT (envelope-from ciscogeek@bgp4.net) Message-ID: <405F3657.7080005@bgp4.net> Date: Mon, 22 Mar 2004 11:54:15 -0700 From: Janet Sullivan User-Agent: Mozilla Thunderbird 0.5+ (Windows/20040310) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Eli K. Breen" , freebsd-stable@freebsd.org References: <405F2344.4050309@gopostal.ca> In-Reply-To: <405F2344.4050309@gopostal.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: natd & virtual hosting X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 18:54:21 -0000 > I'm trying to host a few services under a few different domain names and > need to be running multiple webservers to do it (apache 1.3x and 2.x). > > If I have a single IP, will nat with FreeBSD 4.9 allow me to separate > requests by domain name even if they share an IP? NAT works with IP addresses. Why can't you just use Virtual Hosts in Apache? Do you really need to run both versions? If so, what you need to do is something like this: Apache 1.3x runs on port 80 Apache 2.x runs on port 8080 redirect 192.168.5.1:80 to 123.123.123.123:80 redirect 192.168.5.2:80 to 123.123.123.123:8080