From owner-freebsd-questions Fri Mar 20 16:34:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA10362 for freebsd-questions-outgoing; Fri, 20 Mar 1998 16:34:43 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA10347 for ; Fri, 20 Mar 1998 16:34:36 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.8) with SMTP id QAA06983; Fri, 20 Mar 1998 16:34:33 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Date: Fri, 20 Mar 1998 16:34:33 -0800 (PST) From: Doug White Reply-To: Doug White To: Milic Bogdanovic cc: freebsd-questions@FreeBSD.ORG Subject: Re: How do I do this? In-Reply-To: <34E8D462.1C1E@mixcom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 16 Feb 1998, Milic Bogdanovic wrote: > the web page of the abc.com is up and running now I would like to also > set up a web page for www.def.com 199.xxx.xxx.5. Okay, so you want to virtual host for def.com. no problem. > Here are the contents of my /etc/sysconfig file(onley the part that I > think I need to change): that and apache. All you need to do is add an alias for that ip address on your ethernet interface, then teach apache to display a different serverroot for that ip. > # ifconfig_ed0="inet 10.0.0.1 netmask 0xffffff00" > # ifconfig_sl0="inet 10.0.1.0 netmask 0xffffff00" > # ifconfig_lo0="inet 127.0.0.1" here's the syntax: > # ifconfig_ed0_alias0="inet 10.0.2.1 netmask 0xffffff00" So add something like: ifconfig_de0_alias0="inet 199.x.x.5 netmask 0xffffffff" > I know how to make the required changes for the apache. Make the above change, reboot, and all should be happy. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message