From owner-freebsd-questions Fri Aug 16 01:29:07 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA18025 for questions-outgoing; Fri, 16 Aug 1996 01:29:07 -0700 (PDT) Received: from csd.cs.technion.ac.il (csd.cs.technion.ac.il [132.68.32.8]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id BAA18009 for ; Fri, 16 Aug 1996 01:29:01 -0700 (PDT) Received: (from nadav@localhost) by csd.cs.technion.ac.il (8.6.11/8.6.10) id LAA17866; Fri, 16 Aug 1996 11:27:58 +0300 Date: Fri, 16 Aug 1996 11:27:57 +0300 (IDT) From: Nadav Eiron X-Sender: nadav@csd To: Martina Mohr cc: questions@Freebsd.org Subject: Re: virtual hosts In-Reply-To: <32141E55.1A26@kios.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@Freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Fri, 16 Aug 1996, Martina Mohr wrote: > Hallo, > > I'd like to configured virtual hosts on one machine, with one ethernet > card. I need it for intallation more then one www servers. > Thank your for your help ! > Martina > Well, you didn't say what WWW server you use. I use Apache. You'll need to configure your machine with multiple IP addresses (a.k.a. ifconfig aliases) like so: ifconfig de0 192.116.93.20 netmask 255.255.255.255 alias ^^^^^^^^^^^^^^^ *very* important. You'll also need to configure your DNS accordingly (I use A records, not CNAME records, for the additional names). Then look at your www server docs (Apache's are at http://www.apache.org) to see how to glue it all together. At least with Apache, there are two ways of doing it, the simpler one (using one server and one configuration file with VirtualHost entries) takes no more than 5 minutes to configure (adding a couple of lines to a configuration file and restarting the server). Nadav