[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Aliasing domains (help needed)
- Subject: Re: [cobalt-users] Aliasing domains (help needed)
- From: "Cobalt-Canada" <info@xxxxxxxxxxxxxxxxx>
- Date: Tue Mar 27 03:17:15 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
From: <tob@xxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Tuesday, March 27, 2001 6:58 AM
Subject: [cobalt-users] Aliasing domains (help needed)
> How do I set up 3 domains so that 1 domain exists physically on the RAQ4
> and the other two domains simply point to it.
Hi Tom
I have never used CNAMES.
I found this in the Cobalt FAQ 814. Set up the virtual site that you are
dealing with and set up the DNS it all as normal. Then set up the DNS for
the other two domain names... just create A records for them pointing to the
same IP that the virtual site is on.
Then telnet (or preferably SSH - more secure) to your server and login as
root (enter su - <enter> and your password) and then edit the file
/etc/httpd/conf/httpd.conf
Look for the section for your first virtual site and then add:
ServerAlias otherdomain.com
ServerAlias www.otherdomain.com
Do this for both the other domain names that you want to point to the
virtual site. I have done this several times and it works OK. I used vi to
edit the file. Look up the Cobalt FAQ 814 as they give a few more details.
NOTE - the instructions in that FAQ says to do the following after you have
edited the file:
/etc/rc.d/init.d/httpd.init stop
/etc/rc.d/init.d/httpd.init start
That apparently applies to a RaQ 3. As you are using a RaQ 4, instead use
/etc/rc.d/init.d/httpd
/etc/rc.d/init.d/httpd start
This re-starts the web server.
Arthur