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

RE: [cobalt-users] Domain Aliasing



Jeff can you give an example of how to setup the server alias in the
httpd.conf file.

Thanks
Jim


-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Jeff Lasman
Sent: Thursday, May 18, 2000 11:08 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-users] Domain Aliasing


BlackSun wrote:

> Is there a way to alias a domain to a name-based website, ie:
>
>   virtual.com (actual name-based website, shared IP)
>   virtual.ca  (domain to be aliased)
>
> The end result would be that typing in either virtual.com or
> virtual.ca would take the user to the virtual.com website.
>
> My understanding is that this can be done with a CNAME record,
> but I'm not 100% sure on how to set this up. Any assistance
> is, as always, appreciated.

I would use a CNAME record for this and NOT an A record.  Any time
you've got one domain pointing to another domain, that's the purpoe of
using a CNAME record.

Why?  So if you change the location of virtual.com, virtual.ca will
continue to work; you won't have to remember to change it as well.

The suggestion to use an A record is fine, if both are subdomains or
machine names in the same domain; i.e.: ftp.yourdomain.com can be a
CNAME record to www.yourdomain.com, since you're using it to ftp into
the directories to be accessed by www.  However, using an A record will
save lookup time (one lookup instead of two), and when you change www
you'll see ftp since it's in the same file, and no doubt remember to
change it to.

That said...

This is all it would take if virtual.com had an exclusive IP#.

Since it has a shared IP#, you'll also have to add a ServerAlias
directive for virtual.ca to your /etc/httpd/conf/httpd.conf file.

Jeff
--
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA  92517
voice: (909) 787-8589  *  fax: (909) 782-0205

_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users