*BSD News Article 72679


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!metro!metro!asstdc.scgt.oz.au!nsw.news.telstra.net!act.news.telstra.net!psgrain!usenet.eel.ufl.edu!spool.mu.edu!howland.reston.ans.net!gatech!news.mathworks.com!hunter.premier.net!netnews.worldnet.att.net!ix.netcom.com!netcom.net.uk!dispatch.news.demon.net!demon!datamodl.demon.co.uk
From: martin@datamodl.demon.co.uk (Martin Hargreaves)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: Virtual Hosting
Date: Tue, 02 Jul 1996 22:56:47 GMT
Organization: Datamodel Ltd
Lines: 46
Message-ID: <836348257.21329.5@datamodl.demon.co.uk>
References: <31d4510c.21516442@news2.deltanet.com> <4r3gjj$23d@doctor.nl2k.edmonton.ab.ca>
NNTP-Posting-Host: datamodl.demon.co.uk
X-NNTP-Posting-Host: datamodl.demon.co.uk
X-Newsreader: Forte Free Agent 1.0.82

doctor@nl2k.edmonton.AB.ca (The Doctor) wrote:

>In article <31d4510c.21516442@news2.deltanet.com>,
>scanmaster1@gatewayads.com <scanmaster1@gatewayads.com> wrote:
>>Can someone please let me know how to add addtional ip address for
>>virtual hosting.
>>
>>I need to have 10 ip address bind with 1 network card and then how to
>>configure the httpd.conf files for hosting multiple domains.
>>
>>Thenks
>>
>>Please email if you like
>>
>>darwin@fii.com

>1) Register the V.Domain Name.

>2) Assign an IP.

>3) Place the IP in httpd.conf

>Please feel free to add.

Well the first part was to add the addresses to the network card.
Check the man page for ifconfig, but basically you can do:

ifconfig we0 alias 10.10.10.10

To add the address. You'll probably want to add these to /etc/netstart
once you've got it right. As for the second part, it needs setting in
httpd's conf files like the guy says.

If your httpd is Netsite there's a graphical interface, but it amounts
to the same thing....

M.



##################################################################
# Martin Hargreaves (martin@datamodl.demon.co.uk)  Computational #
# Director, Datamodel Ltd                                Chemist #
# Contract Unix system admin/Unix security              Sysadmin #  
##################################################################