[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Using include.conf file with httpd.conf changed the default site
- Subject: Re: [cobalt-users] Using include.conf file with httpd.conf changed the default site
- From: "Steve Bassi" <steve@xxxxxxxxx>
- Date: Thu Apr 18 08:53:14 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
----- Original Message -----
From: "Chris Bell" <chris@xxxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Wednesday, April 17, 2002 9:47 AM
Subject: [cobalt-users] Using include.conf file with httpd.conf changed the
default site
|
| I wanted to configure some virtual web servers pointing to a subdirectory
| of an existing site.
|
| cb
|
This is how i do mine and seems to work
pico -w /etc/httpd/conf/httpd.conf
#Add the following line at the very end of the file, If you put it elsewhere
it seems to mess up
Include /etc/httpd/conf/include.conf
#Create the Include file if it does not exist
touch /etc/httpd/conf/include.conf
# Edit the file
pico -w /etc/httpd/conf/include.conf
#Add these lines for each domain you want to redirect
<VirtualHost 198.0.0.2> #your ip address
ServerName www.newdomain.com # name of site being redirected
ServerAdmin admin
DocumentRoot /home/sites/SITEXXX?/web/name.of.directory.if .not.web
ServerAlias newdomain.com
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml #comment out if you dont use SSI
AddType text/html .shtml #comment out if you dont use SSI
</VirtualHost>
This is what I did for byrdpta.com
Which actually points to firstwebspace.com/domainholding
You do not need to copy all the alias stuff thats in httpd.conf
You will need the A records and MX records set up for the newdomain in the
dns control panel
Rgds
Bassi