Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!act.news.telstra.net!vic.news.telstra.net!news.mira.net.au!yarrina.connect.com.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!idir.net!cypress.idir.net!ksteph From: Kevin Stephens <ksteph@idir.net> Newsgroups: comp.unix.bsd.bsdi.misc Subject: Re: Alias domains Date: Mon, 25 Mar 1996 13:48:05 -0600 Organization: Internet Direct Communications - Lawrence, Ks - (913) 841-2220 Lines: 40 Message-ID: <Pine.LNX.3.91.960325133723.26671A-100000@cypress.idir.net> References: <4iuejk$r83@wca.com> NNTP-Posting-Host: cypress.idir.net Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <4iuejk$r83@wca.com> On 22 Mar 1996, Rick Gaudreau wrote: > Does anyone know if I can setup a index.html for alias domains in my > domain. If I www.wca.com or the aliase domain I get wca.com's index.html. > Any help would be appreciated. On BSDI this is a very easy chore. First assign an IP address to the domain (foo.com) and give it a name record. Then all you need to do is an ifconfig, in the format of: ifconfig ne0 127.0.0.1 alias [1] [2] [3] [1] Interface [2] IP address of www.foo.com [3] alias to make it an alias and not the default address of the card. On our machine, it has a tendency to report I/O errors, however, it still works right ?!?!?! Then in your httpd.conf file you will need to make a virtual host entry. I would highly advice reading the helpfiles for your specific httpd. We use NCSA and has the format of: <VirtualHost 127.0.0.1 Optional> ### Not 127.0.0.1 is replaced by ### www.foo.coms addresss. DocumentRoot /users/foo/public_html/ ### Foo's directory where it finds ### index.html ServerName foo.com ### name of the server. You can do just ### domain or host name also </VirtualHost> It is as easy as that!!! SIGHUP httpd and give it a try. Let me know if you have problems. |--------------------------------------------------------------------| | ksteph@idir.net Kevin Stephens | |____________________________________________________________________| | net.white.trash: http://www.idir.net/~ksteph/ | | net.suburbia.lost: http://www.idir.net/~ksteph/punk.html | |--------------------------------------------------------------------|