From owner-freebsd-questions Tue Dec 15 03:03:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA13763 for freebsd-questions-outgoing; Tue, 15 Dec 1998 03:03:29 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mustang.fidnet.com (mustang.fidnet.com [205.216.200.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA13758 for ; Tue, 15 Dec 1998 03:03:28 -0800 (PST) (envelope-from yoonix@fidnet.com) Received: from mustang (mustang [205.216.200.10]) by mustang.fidnet.com (8.8.8/8.8.8) with ESMTP id FAA06147; Tue, 15 Dec 1998 05:02:16 -0600 (CST) Date: Tue, 15 Dec 1998 05:02:16 -0600 (CST) From: Mark Turpin X-Sender: yoonix@mustang To: LeRoy cc: questions@FreeBSD.ORG Subject: Re: Web server config In-Reply-To: <000101be27f0$c5e1daa0$2d5efea9@266mmx> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In your httpd.conf: ServerAdmin webmaster@blah.com DocumentRoot /usr/home/username/blah.com ServerName www.blah.com ErrorLog /var/log/httpd/blah.com-error_log TransferLog /var/log/httpd/blah.com-access_log ScriptAlias /cgi-bin/ /usr/home/username/blah.com/cgi-bin/ On your network part, just do this and put the ifconfig lo0 and arp lines in some startup script so its there when your box reboots: (type this to get your ether addr) wave# ifconfig ed1 ed1: flags=8843 mtu 1500 inet 209.74.175.2 netmask 0xffffffc0 broadcast 209.74.175.63 ether 00:40:f6:34:4b:19 ^^^^^^^^^^^^^^^^^take this ether addr and put it ifconfig lo0 alias 199.200.234.10 arp -s 199.200.234.10 00:40:f6:34:4b:19 pub ifconfig lo0 alias 199.200.234.11 arp -s 199.200.234.11 00:40:f6:34:4b:19 pub ^^^^^^^^down here for your arp If you do your own dns, do this: GOTO A BOOKSTORE. By the book: DNS and BIND from ORA ISBN 1-56592-236-0 And in the future, check the web first. http://www.apache.org, http://www.isc.org/bind.html, http://www.sendmail.org, http://www.freebsd.org/handbook/ On Mon, 14 Dec 1998, LeRoy wrote: > To whom it may concern! > > > > I have Apache 1.3 running on freebsd 3.0. My problem is setting up the > httpd.conf to host web's site. > > Example: I have www.example.org = 199.200.234.10 and www.happy.org = > 199.200.234.11 note i have added one ip to the network card > > The main one being 199.200.234.10 and the added ip being 199.200.234.11. > Does anyone know how to set the httpd.conf to see the two web sites? And > resolve 199.200.234.11 if you ping it? This may sound like a dumb > question but i am new to freebsd 3.0 > > Any help will help :) > > Thank's in advance. > Leroy > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > ------------------------- Mark Turpin, Unix Geek yoonix@fidnet.com Toll-Free: (800) 392-8070 x214 A1C, USAF 218th EIS To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message