Date: Thu, 21 Oct 1999 17:09:07 +0300 From: Ruslan Ermilov <ru@ucb.crimea.ua> To: Bert Hiddink <hiddink@galileo.or.cr> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Setting up IP-based Virtual Hosts for FreeBSD Message-ID: <19991021170907.A39917@relay.ucb.crimea.ua> In-Reply-To: <19991021125334.9B04914D4E@hub.freebsd.org>; from Bert Hiddink on Thu, Oct 21, 1999 at 06:58:05AM -0600 References: <19991021125334.9B04914D4E@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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: > > <VirtualHost 192.168.1.11> > DocumentRoot /usr/local/www/data/hp-sipromicro > ServerName local.sipromicro.com > </VirtualHost> > [...] > > >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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991021170907.A39917>