*BSD News Article 62281


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!agate!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!info.ucla.edu!ucsbuxb.ucsb.edu!beauty!loren
From: loren@beauty.ucsb.edu (Loren Koss)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: how to home multiple domains on one machine for web sites
Date: 16 Feb 1996 18:08:00 GMT
Organization: University of California, Santa Barbara
Lines: 44
Distribution: all
Message-ID: <4g2h60$m9t@ucsbuxb.ucsb.edu>
References: <4fsst7$md5@rigel.luznet.es>
NNTP-Posting-Host: beauty.mcl.ucsb.edu

Okay, it can be done with 2.1.0, and probably easier than in Linux!

Here's the way to do it:
ifconfig ep0 <new domain> alias
route add <new domain>
Now, i use ep0 because I have a etherlink iii card.  Use whatever is your 
link.  You may get an error like IFCONFIG: file already exists.  I do't 
know why that happens.  It still works, though.

Nowq, for httpd to work, you need to hack the code a little.  CERN is 
probably pretty difficult to do.,  I have a hacked version of NCSA (which 
I find is  a better daemon anyway).  If you need a compiled version (opr 
the source) lemme know and I'll mail it to you.  Basically, then in the 
.srm file you tell it all your virtual domains and what the root is for 
each one, etc.

Loren



In <4fsst7$md5@rigel.luznet.es> root@rigel.luznet.es (Charlie Root) writes:


>Hello -

>	My problem is the following. I want to be able to 
>create multiple domains on my net, and have one machine be
>seen as having different internet addresses, one in each
>domain. I want to be able to run a web server (CERN httpd,
>probably) so that when the machine is accessed the httpd
>is aware of which internet address it is being accessed as,
>so that it can display a different home page and directory
>depending on the domain under which it was accessed.

>	Have I been clear? Talking to people, they tell
>me that it can be done under linux by setting up 'pseudo-
>interfaces'. I would like to do it under 2.1.0.


>	Any help appreciated.


>				Garey Mills