From owner-freebsd-questions Mon Jan 24 11:43: 3 2000 Delivered-To: freebsd-questions@freebsd.org Received: from www.beastie.net (cr13646-a.lngly1.bc.wave.home.com [24.113.138.52]) by hub.freebsd.org (Postfix) with ESMTP id C03A814EF6 for ; Mon, 24 Jan 2000 11:42:57 -0800 (PST) (envelope-from apache@beastie.net) Received: from apache by www.beastie.net with local (Exim 3.03 #1) id 12CpMd-0008q4-00; Mon, 24 Jan 2000 11:41:27 -0800 From: David Fuchs To: HokieGrind Reply-To: David Fuchs Cc: freebsd-questions@FreeBSD.ORG References: <20000124190157.20125.qmail@web2002.mail.yahoo.com> In-Reply-To: <20000124190157.20125.qmail@web2002.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP3 Imap webMail Program 2.0.11 Subject: Re: Apache 1.3.9 (ports) and FreeBSD3.3 with VirtualHosts Message-Id: Date: Mon, 24 Jan 2000 11:41:27 -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Virtual hosts aren't really supposed to be as complicated as you're making them. Here's what I have in rc.conf (You shouldn't need to add anything to rc.local for this) to define my rl0 device (outside network), and my mx0 device (inside network). ifconfig_rl0="inet 204.244.13.52 netmask 255.255.254.0" ifconfig_mx0="inet 192.168.1.1 netmask 255.255.255.0" In my httpd.conf file I simply use multiple virtual host entries such as this one: ServerAdmin beastie@beastie.net DocumentRoot /usr/www/www ServerName www.beastie.net ErrorLog /usr/www/www/error.log CustomLog /usr/www/www/access.log Combined So if I go to www.beastie.net it points me to 204.244.13.52. Of course, the www.beastie.net name is set up with my DNS server, which points the name www.beastie.net to 204.244.13.52. You won't be able to ping the device by name. Try pinging the IP that you set it to via ifconfig. IF this doesn't help, or if I'm unclear, just ask. -David Fuchs Quoting HokieGrind : > 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