[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] How do I point a second domain name to an already created web site on RaQ4?
- Subject: Re: [cobalt-developers] How do I point a second domain name to an already created web site on RaQ4?
- From: "John D. Gorena" <Support@xxxxxxxxxxxxxxxxxxx>
- Date: Thu Jun 14 13:37:01 2001
- Organization: http://www.JMG-Enterprises.com
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
Kevin Schaefer wrote:
> simply two domain names pointing to one site
> mail and web services
>
> TIA,
>
> Kevin Schaefer
> Creative Technical Services, Normal, Illinois
> Ph. 309-862-2983, Fax 309-862-2226
I'm sure it's just like the Raq3
So here it is:
In this Example I want www.123.com to point to www.abc.com
DNS Pointing - To point other Domain Names to a main Domain Name.
A. Telnet to the server, and log in as admin.
B. Become root by issuing the command: su - and it will prompt you for a
password; enter the same password as the admin user.
C. Change to the following directory by issuing the command: cd
/etc/httpd/conf
D. Use an editor to edit the httpd.conf file (pico is the easiest editor):
pico httpd.conf
E. Look for a section (near the end of the file) that looks like this (with
your IP and domain name info, of course) for the site you want to add an alias
for:
1. Use the Whereis (ctrl-w in pico) command and search for the Domain Name.
It is in sections. And it will look some thing like:
<VirtualHost XXX.XXX.XX.XX>
ServerName www.abc.com
ServerAdmin site4
DocumentRoot /home/sites/site4/web
ServerAlias abc.com {Put them in the ServerAlias Section}
ServerAlias www.123.com {ADD THIS LINE}
ServerAlias 123.com {ADD THIS LINE}
RewriteEngine on
RewriteCond %{HTTP_HOST} !^XXX.XXX.XX.XX(:80)?$
RewriteCond %{HTTP_HOST} !^www.abc.com(:80)?$
RewriteRule ^/(.*) http://www.abc.com/$1 [L,R]
.. . . . . .
</VirtualHost ##########>
2. In this example, notice the 2 entries with {ADD THIS LINE}... those need to
be added in the ServerAlias Section. These entries enable www.123.com and
123.com to be redirected to the 'main' site at www.abc.com.
3. Save and exit pico.
4. I have not been able to find any solution to re-directing a domain name to
another domain's subdirectory using the above method. Everything I am told and
everything I have found online suggests using an HTML refresh tag to do it. An
Example is at http://www.JMGEnterprises.com/index.htm which points to the main
site.
F. You also need to create the A records but not the MX record for the new
domain name.
1. - Leave host name Blank
a. 123.com
b. IP address of XXX.XXX.XX.XX
2. Use www in host name
a. 123.com
b. IP address of XXX.XXX.XX.XX
G. This httpd.conf file needs to be restarted to take effect. You can reboot
the RAQ server from the control panel or faster by running the restart program
for the httpd.conf file by:
1. Typing cd /etc/rc.d/init.d
2. Type ./httpd restart
--
John D. Gorena
PC and Internet Marketing Consultant
http://www.JMG-Enterprises.com
Office: 972-315-0496
Fax: 972-315-3104