Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Dec 1998 05:02:16 -0600 (CST)
From:      Mark Turpin <yoonix@fidnet.com>
To:        LeRoy <circuit@concentric.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Web server config
Message-ID:  <Pine.SO4.4.05.9812150452560.5286-100000@mustang>
In-Reply-To: <000101be27f0$c5e1daa0$2d5efea9@266mmx>

next in thread | previous in thread | raw e-mail | index | archive | help
In your httpd.conf:

<VirtualHost www.blah.com>
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/
</VirtualHost>

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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SO4.4.05.9812150452560.5286-100000>