[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Multiple Domain Names on Raq 3
- Subject: Re: [cobalt-users] Multiple Domain Names on Raq 3
- From: Webmaster <webmaster@xxxxxxxxx>
- Date: Sat Jan 1 00:25:05 2000
At 11:42 31/12/99 -0600, you wrote:
I am doing name-based hosting on a Raq3 server. I need to have multiple domain names point to one particular virtual site (eg. one site needs to answer to both <http://www.domaina.com>www.domaina.com & <http://www.domainb.com>www.domainb.com). A DNS cname record won't do the trick, since there are multiple virtual sites on the server. I tried modyifing the httpd.conf file manually, but the web control panel wiped my edits the next time it was used. Does anyone have any suggestions on how to do this?
<<<<
Wish you all Happy New Year !
Re:Multiple Domain Names
Add the following line in your httpd.conf file at last line
Include /etc/httpd/conf/cnames.conf
Then create a file /etc/httpd/conf/cnames.conf
with at least following contents.
<VirtualHost your.ip.number.here>
ServerName www.domainB.com
ServerAlias domainB.com
RedirectPermanent / http://www.domainA.com/
</VirtualHost>
(you may omit the ServerAlias if you don't need)
Now restart the web server.
Regards,
Babu P. Yogarajah