[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] point domain to another domain
- Subject: Re: [cobalt-developers] point domain to another domain
- From: Jeff Lasman <jblists@xxxxxxxxxxxxx>
- Date: Thu Jul 20 09:23:01 2000
- Organization: nobaloney.net
All of us here wrote:
> I have 2 domains on my Raq3. I need one to automatically switch to the
> other when accessed.
>
> How do you do that?
>
> I put in an A Record with my old name pointing to the new name, didn't seem
> to do anything.
I'm not sure what you mean, since you don't use an A record to point a
name to a name, but rather to resolve a name to an IP#.
Presuming that what you mean is something like this:
oldname.com. IN A 123.124.125
in the zone file for oldname, and
newname.com. IN A 123.124.125
in the zone file for newname, then if newname.com is sharing an IP#, you
need to have the ServerAlias lines as follows:
ServerAlias www.oldname.com
ServerAlias oldname.com
in your /etc/httpd/conf/httpd.conf file in the virtual host block for
newname.com. Though their location isn't defined anywhere, I generally
put them right above the DocumentRoot line.
If you change /etc/httpd/conf/httpd.conf, be sure to restart Apache to
make it work.
Instructions were posted by me in response to another post in the last
few days.
Jeff
--
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA 92517
voice: (909) 787-8589 * fax: (909) 782-0205