[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Raq4 - Redirect domains
- Subject: Re: [cobalt-users] Raq4 - Redirect domains
- From: "Steve Werby" <steve-lists@xxxxxxxxxxxx>
- Date: Thu Aug 30 07:53:19 2001
- Organization: Befriend Internet Services LLC
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
"WebMaster@xxxxxxxxxxxxxxxx" <webmaster@xxxxxxxxxxxxxxxx> wrote:
> How is the easiest way to redirect several domains to one domain ?
> I guess it can be done by establish a site for each domain and have it
> redirected by html code,
> or by direct set up in the DNS.
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
> What is recommended and using less bandwith ?
This uses the same amount of bandwidth as hosting the sites separately. If
I misunderstood you and the source sites don't reside on the same server as
the destination site my solution will not work.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/