From owner-freebsd-questions Fri Oct 22 0:16:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from relay.ucb.crimea.ua (UCB-Async4-CRISCO.CRIS.NET [212.110.129.130]) by hub.freebsd.org (Postfix) with ESMTP id 42A9A14D2D for ; Fri, 22 Oct 1999 00:15:05 -0700 (PDT) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.9.3/8.9.3/UCB) id RAA41336; Thu, 21 Oct 1999 17:09:07 +0300 (EEST) (envelope-from ru) Date: Thu, 21 Oct 1999 17:09:07 +0300 From: Ruslan Ermilov To: Bert Hiddink Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Setting up IP-based Virtual Hosts for FreeBSD Message-ID: <19991021170907.A39917@relay.ucb.crimea.ua> Mail-Followup-To: Bert Hiddink , freebsd-questions@FreeBSD.ORG References: <19991021125334.9B04914D4E@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <19991021125334.9B04914D4E@hub.freebsd.org>; from Bert Hiddink on Thu, Oct 21, 1999 at 06:58:05AM -0600 X-Operating-System: FreeBSD 3.3-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Oct 21, 1999 at 06:58:05AM -0600, Bert Hiddink wrote: > Hello, > > I have FreeBSD 2.2.8 with Apache 1.3. on a Windows LAN. > > I would like to set-up IP-based Virtual Hosts feature of Apache for > FreeBSD. Therefore I created multiple IP-alias with the ifconfig > command. > /sbin/ifconfig ed0 alias 192.168.1.11 netmask 255.255.255.255 > /sbin/ifconfig ed0 alias 192.168.1.12 netmask 255.255.255.255 > ... > > So far, so good. Then I added to the /etc/hosts: > > 192.168.1.11 local.sipromicro.com > 192.168.1.12 local.coopnetaldia.org > 192.168.1.13 local.coopnetupdate.org > 192.168.1.14 local.associate-expert.net > 192.168.1.15 local.microempresa.org > 192.168.1.16 local.apache.org > 192.168.1.17 local.galileo.or.cr > 192.168.1.18 local.coninpyme.org > > Then I edited the httpd.conf of Apache: > > > DocumentRoot /usr/local/www/data/hp-sipromicro > ServerName local.sipromicro.com > > [...] > > >From a Windows machine, I can now acces the Virtual Hosts by typing > on the IP-address in my browser, and this points correctly to the > respective directory. However, I would like this to work with the > Virtual Hostnames f.e. instead of using 192.168.1.12 typing directly > http://local.coopnetaldia.org (see the example above). > > However, I can not get did worked. What I am doing wrong here? > Do I need a DNS-server for this? > Either run DNS, or populate %windir%\HOSTS with the same entries. -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank, ru@FreeBSD.org FreeBSD committer, +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message