From owner-freebsd-questions Mon Jan 24 12:30:35 2000 Delivered-To: freebsd-questions@freebsd.org Received: from trinity.lee.net (trinity.lee.net [208.229.121.1]) by hub.freebsd.org (Postfix) with ESMTP id 88863151EC for ; Mon, 24 Jan 2000 12:30:32 -0800 (PST) (envelope-from awells@journalstar.com) Received: from journalstar.com (leepcB-039.sub-b.lee.net [208.205.125.39]) by trinity.lee.net (8.9.3/8.9.0) with ESMTP id OAA27955; Mon, 24 Jan 2000 14:29:01 -0600 Message-ID: <388CB77A.DDECF611@journalstar.com> Date: Mon, 24 Jan 2000 14:35:06 -0600 From: Tony Wells X-Mailer: Mozilla 4.61 [en] (X11; I; FreeBSD 3.0-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: HokieGrind Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Apache 1.3.9 (ports) and FreeBSD3.3 with VirtualHosts References: <20000124190157.20125.qmail@web2002.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm assuming you have a single interface on your machine and need to setup aliases for that interface. ifconfig is the command, and the syntax for an alias is: ifconfig inet netmask 255.255.255.255 alias So the command would look something like: ifconfig x10 inet 10.0.0.1 netmask 255.255.255.255 alias You can do this from the command line (as root) and then ping the IP to make sure it works. To make it permanent add the line into /etc/rc.local, or better yet make an executable shell script to do the same and drop it in /usr/local/etc/rc.d Once you have the aliases working you can setup httpd.conf to bind virtual servers to those IP's. Good luck. HokieGrind wrote: > > I have been attempting to configure my FreeBSD3.3 > install to use Apache 1.3.9, with multiple > VirtualHosts. I am interested in learning the > required configurations which equate to the rc.local > entries used to initialize the network interface for > multiple IP's/VirtualHosts (like /sbin/ifconfig e0:1 > 127.16.0.100). > > Thus far, I've made entries in my httpd.conf file, and > added a line to the /etc/rc.conf similar to the > following: > > ifconfig_xl0_myid_dev2="inet 155.16.0.105 netmask > 255.255.0.0" > > Even with this entry, I still cannot ping the virtual > host 'myid_dev2' - interface not up. > > What else needs to be configured in order for me to > use VirtualHosts with Apache1.3.9 and FreeBSD3.3? > > hokiegrind@yahoo.com > > __________________________________________________ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://im.yahoo.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message