*BSD News Article 72959


Return to BSD News archive

Newsgroups: comp.unix.bsd.bsdi.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!newsgate.duke.edu!news.mathworks.com!newsfeed.internetmci.com!mr.net!news.mr.net!NEWS!not-for-mail
From: mury@goldengate.net (Mury)
Subject: Re: Virtual Hosting
Message-ID: <61e7cc$113129.1a2@NEWS>
Date: Mon, 01 Jul 1996 00:57:51 GMT
References: <31d4510c.21516442@news2.deltanet.com> <4r3gjj$23d@doctor.nl2k.edmonton.ab.ca>
X-Newsreader: Forte Free Agent 1.0.82
Lines: 47

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


You need to add the following lines into your rc.local file and type
them in once manually:

	/sbin/route add -iface -net 206.77.10 206.77.8.5

(This will allow you to assign IP from another class C to the machine.
You can now assign 206.77.10.x to the network card in the machine
206.77.8.5)

(Now you can add the specifics.  For example:)

	/sbin/ifconfig we0 www.bygolly.com alias

(This would add the virtual domain www.bygolly.com to the machine IP
206.77.8.5.)

(Don't forget to assign 206.77.10.x to www in the bygolly.com DNS
file.)

________________________
Mury Johnson
GoldenGate Internet Services