[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] How to setup DNS for a Sub-Domain on Raq4
- Subject: Re: [cobalt-users] How to setup DNS for a Sub-Domain on Raq4
- From: Jeff Lasman <jblists@xxxxxxxxxxxxx>
- Date: Mon Sep 9 14:01:01 2002
- Organization: nobaloney.net
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Jerry Farquhar wrote:
> Anyone know how to setup DNS etc.. to point a domain name to a folder of
> another domain?
>
> I have a client that already hosts one site with us and want to have DNS
> point a second domain to a folder under the main site. Any help or pointers
> about this would be really appreciated.
Part of it is done in DNS... that's the part of pointing the domain to
the IP#. You can do that by creating another copy of the zone-file,
with the new domain name rather than the old one. Just copy all the
entries from firstdomain.com to secondomain.com in the DNS gui, and be
sure to restart the DNS.
The rest has to be done manually in apache, probably in
/etc/httpd/conf/httpd.conf. You need to create the domain on the RaQ,
then change the DocumentRoot for the domain.
It'll be something like "/home/sites/site44/web"; you'll want to change
it to something like "home/sites/site13/web/newdomain", where site13 is
the site number of the original site, and newdomain is the subdirectory
name.
You may also want to turn off the "Rewrite Engine" (Rewriteengine off),
so new domain name won't get overwritten with the old one.
Be aware that every time you make a change to "new domain" through the
gui, your changes in /etc/httpd/conf/httpd.conf could be overwritten so
save a copy somewhere in case you have to reinstall it.
Jeff
--
Jeff Lasman <jblists@xxxxxxxxxxxxx>
Linux and Cobalt/Sun/RaQ Consulting
nobaloney.net, P. O. Box 52672, Riverside, CA 92517
voice: +1 909 778-9980 * fax: +1 909 548-9484