*BSD News Article 85069


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.Hawaii.Edu!news.uoregon.edu!arclight.uoregon.edu!news.sprintlink.net!news-peer.sprintlink.net!worldnet.att.net!uunet!in2.uu.net!165.90.143.190!cedb!usenet
From: dan@beach.net (Dan Busarow)
Subject: Re: virtual host problems, I think.
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.7
To: robert@chalmers.com.au (Robert Chalmers)
Sender: usenet@news.beach.net (Charlie Root)
Nntp-Posting-Host: calafia.beach.net
Organization: Beach.Net, the Beach Cities, California
Message-ID: <E2H13q.Cz4@news.beach.net>
References: <58t6ur$4jp@mackay02.cqit.qld.edu.au>
Mime-Version: 1.0
Date: Sun, 15 Dec 1996 20:04:37 GMT
Lines: 22
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:32658

In article <58t6ur$4jp@mackay02.cqit.qld.edu.au>,
	robert@chalmers.com.au (Robert Chalmers) writes:
> # ifconfig ed1 inet xxx.xxx.xxx.xxx alias

Change that to
# ifconfig ed1 inet xxx.xxx.xxx.xxx netmask 0xffffffff alias
                                    ^^^^^^^^^^^^^^^^^^
> Now, all appears to be basically ok. However, if I leave off the _server_
> name of the new virtual web, and just enter the domain on the URL line,
> it comes up with the index file in the virtual home, but it's connected 
> to the true server, even though the url location displays the virtual
> name? If I enter the actual virtual host name and domain it works fine.

You could either remove the DNS A record for the domain only entry
or you could specify the IP address in the <VirtualHost> directive.
<VirtualHost xxx.xxx.xxx.xxx> instead of <VirtualHost www.some.domain>

Dan
--  
 Dan Busarow
 DPC Systems / BeachNet
 Dana Point, California