[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Domain Name Forwarding on a Raq3



"Adam Reynolds" <Adam.Reynolds@xxxxxxxxxxxx> wrote:
> I'm looking into having one primary domain and forwarding five others to
> the web space for that domain. I'm assuming that this is not possible
> through the Raq interface and that I would have to edit some of the
> underlying Apache files.

If you mean you want to setup 5 hosts as aliases of host1, you need to:

1. Login to shell as admin, su - to root.
2. Setup the DNS to point to the same IP as the target host.
3a. Open /etc/httpd/conf/httpd.conf using something like pico.
3b. ctrl-w, 'host1' // to find the record.
3c. In the VirtualHost container for host1, find the line ServerAlias
3d. After that line add:
ServerAlias www.host2.tld
...
ServerAlias www.host5.tld
3e. ctrl-o to save.
4. /etc/rc.d/init.d/httpd restart (to reload Apache config files and restart
Apache).

If you meant you want to point the hosts to directories of host1 then you
need to create all 5 sites through the GUI and then manually edit their
records in httpd.conf to change the DocumentRoot to point to the correct
directory.  The rest of the steps above still apply.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/