[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: "Malcolm Wild" <cobaltsec@xxxxxxxxxxx>
- Date: Thu Jun 14 17:43:26 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
A simple way to avoid errors caused by newbies when editing the httpd.conf
files is similar to what another user said...
Create the second site and DNS details as normal in the GUI.
Create a users with a catchall to forward to the required address
Then upload a .htaccess file into the /web directory with the following line
Redirect / http://www.where-ever.you/like
TIP: if you can't see the .ht files in your FTP client (e.g. CuteFTP) use
the -a command in the custom commands sections.
That will forward the :80 web access and email services easily to use the
site.
TIP: to use the siteadmin GUI you have to go in on :81 using the full path
to the site
http://ip.of.your.raq:81/.cobalt/siteManage/www.the.site
Hope that helps :)
-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]On Behalf Of John D.
Gorena
Sent: 15 June 2001 05:37
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-developers] How do I point a second domain name to
an already created web site on RaQ4?
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
_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers