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

Re: [cobalt-users] Raq4 - Redirect domains



> Setup DNS records for all sites using the same IP address as the site you
> want to point to.  Then in the Web Alias field in the GUI add the sites as
> follows:
>
> www.domain1.tld., www.domain2.tld.
>
> and save the site record.  What this does is adds the following lines to
the
> VirtualHost container for the destination site in httpd.conf"
>
> ServerAlias www.domain1.tld
> ServerAlias www.domain2.tld
>
> which is something you can manually if you prefer.  Incidentally on
> all-but-very-ancient versions of Apache you can write this as:
>
> ServerAlias www.domain1.tld www.domain2.tld

Thanks Steve, great tip. Would this work:

A record: www.domain1.tld   >   target.ip.address.here  (for IP based site)

or

CNAME www.domain1.tld   > www.targetdomain.com  (for name based site)

??

Is any method better than the other?

Thanks

Brandon