From owner-freebsd-questions Thu Oct 21 5:53:53 1999 Delivered-To: freebsd-questions@freebsd.org Received: from relay2.pair.com (relay1.pair.com [209.68.1.20]) by hub.freebsd.org (Postfix) with SMTP id 9B04914D4E for ; Thu, 21 Oct 1999 05:53:26 -0700 (PDT) (envelope-from hiddink@galileo.or.cr) Received: (qmail 22733 invoked from network); 21 Oct 1999 12:53:48 -0000 Received: from escazu1-a13.racsa.co.cr (HELO verberne) (196.40.7.14) by relay1.pair.com with SMTP; 21 Oct 1999 12:53:48 -0000 X-pair-Authenticated: 196.40.7.14 From: "Bert Hiddink" To: freebsd-questions@freebsd.org Date: Thu, 21 Oct 1999 06:58:05 -0600 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Setting up IP-based Virtual Hosts for FreeBSD X-mailer: Pegasus Mail for Win32 (v3.12a) Message-Id: <19991021125334.9B04914D4E@hub.freebsd.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 DocumentRoot /usr/local/www/data/hp-coopnetaldia ServerName local.coopnetaldia.org DocumentRoot /usr/local/www/data/hp-coopnetupdate ServerName local.coopnetupdate.org DocumentRoot /usr/local/www/data/hp-associate-expert ServerName local.associate-expert.net DocumentRoot /usr/local/www/data/hp-microempresa ServerName local.microempresa.org DocumentRoot /usr/local/www/htdocs ServerName local.apache.org DocumentRoot /usr/local/www/data/hp-galileo ServerName local.galileo.or.cr DocumentRoot /usr/local/www/data/hp-coninpyme ServerName local.coninpyme.org >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? Any help would be greatly appreciated! Regards, -brt Bert Hiddink, FUNDACION GALILEO Correo electronico: hiddink@galileo.or.cr Sitio: http://www.galileo.or.cr Tel. (506) 280 8683, telefax. (506) 280 8847 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message