[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] redirect
- Subject: Re: [cobalt-users] redirect
- From: "Steve Bassi" <steve@xxxxxxxxx>
- Date: Wed Apr 24 18:47:14 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> Hi all,
>
> I'm new with the Raq 4 and Dns.
>
> I got most of it going but now I want to redirect a several domain names
to
> one main domain
First telnet/SSH in to your Raq as root.
Then create an include file for httpd.conf: , if you have not already
created one.
touch /etc/httpd/conf/include.conf
pico -w /etc/httpd/conf/httpd.conf - and add the following line at the end
of your httpd.conf file:
Include /etc/httpd/conf/include.conf
Then for each domain you want to redirect add the followinf lines to the
include file you just created. (pico -w /etc/httpd/conf/include.conf)
<VirtualHost 123.123.123.123> #replace123 with your IP
ServerName www.NEWDOMAIN.com
ServerAdmin admin
DocumentRoot /home/sites/siteX/web #replace X with your site number
ServerAlias NEWDOMAIN.com
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
# Uncomment next 2 lines if you want to use SSI
#AddHandler server-parsed .shtml
#AddType text/html .shtml
</VirtualHost>
If you want to redirect the site to a sub domain of /home/sites/siteX/web
just add the appropriate directory. /home/sites/siteX/web/parked
Thats how I do it
Bassi