From owner-freebsd-isp Thu May 8 19:25:35 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA04121 for isp-outgoing; Thu, 8 May 1997 19:25:35 -0700 (PDT) Received: from panda.hilink.com.au (panda.hilink.com.au [203.2.144.5]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA04110 for ; Thu, 8 May 1997 19:25:30 -0700 (PDT) Received: (from danny@localhost) by panda.hilink.com.au (8.8.5/8.8.5) id MAA09615; Fri, 9 May 1997 12:30:45 +1000 (EST) Date: Fri, 9 May 1997 12:30:44 +1000 (EST) From: "Daniel O'Callaghan" To: Bernard Courtney cc: freebsd-isp@FreeBSD.ORG Subject: Re: Virtual Domains Under 2.1.5 In-Reply-To: <3372824D.63C6@bythehand.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, 8 May 1997, Bernard Courtney wrote: > Thanks, > > I already have apache installed and running the main domain perfectly. > I now have configured it to act a a vrtual server for the secons domain, > however I need to set up FreeBSD to respond to another IP address. I am > running FreeBSD 2.1.5. OK. What is your network setup? I have my www server on a subnet (mask 255.255.255.240) and a route to a class C network with the web servers on it. I have each of the ipaddresses 203.8.13.{1-254} aliased onto lo0 with commands like below in /etc/ipaliases, run at boot time. ifconfig lo0 203.8.13.1 netmask 0xfffffff alias If you have just a class C network, and you did not subnet it, so your PPP dialups all use proxy arp etc, you'll have to put your aliases onto your ethernet interface: ifconfig ed0 203.8.13.1 netmask 0xfffffff alias Note that while the primary ifconfig for the ethernet interface uses a correct netmask, the aliases should use 0xffffffff (255.255.255.255) In 2.1.7, there is a feature for /etc/start_if.ed0 which can be just a series of ifconfig statements, to be used instead of the ifconfig args definition in /etc/sysconfig. Danny