[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] How to reach a virual site



on 7/10/00 9:25 AM, Robert MONTORI at r.monto@xxxxxxxxxx wrote:

> 
> On my cobalt when i create a new virtual site for example www.mydomain.com
> at what adresse i can see this site until it is create on Nic and known in
> DNS
> i try
> ipadress/home/site/www.mydomain.com/
> www.themainsite.com/home/site/www.mydomain.com/

You would normally just type in www.themainsite.com, however, if you are
using name-based hosting this may not be what you want.

If the DNS record does not exist yet, you'll need to modify your /etc/hosts
(on linux) or wherever they keep the hosts file on Windows (if in windows).

Set it up to read

www.themainsite.com    10.0.0.1

where 10.0.0.1 is the IP.

Then just type 'www.themainsite.co' into the browser and it will send the
properly formatted HTTP_HOST header so the web server will know what page
you want to see.

This is the prefered method over setting up a complete name server just for
you.  The hosts file, incidentally is used for mapping names to numbers,
similar to the DNS system.
-k