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

Re: [cobalt-users] Multiple Domain Names on Raq 3



Hi Bert,

It is simple.

sample config.
Look for the line in the file  /etc/virtusertable
# Put custom additions below (Do not change/remove this line).

After above line add your new config.

## domainB.com --> domainA.com ##
@domainB.com	  %1@xxxxxxxxxxx


#Similarly

@mydomain.net  %1@xxxxxxxxxxxx
@mydomain.org  %1@xxxxxxxxxxxx



Then run the following command at shell prompt.

makemap hash /etc/virtusertable.db < /etc/virtusertable


I normally use a handy perl script to up date the virtusertable
It follows.

my script /usr/bin/newvirt
----------

#! /usr/bin/perl

system("makemap hash /etc/virtusertable.db < /etc/virtusertable");

exit;

--------


Regards,
Babu P. Yogarajah




At 17:33 09/01/00 +0100, you wrote:
>Babu,
>
>This is also what I am looking at.
>But,
>What happens with email to domainB?
>If somebody sends an email to info@xxxxxxxxxxxx
>Where is it going? To info@xxxxxxxxxxx?
>
>The reason I ask this is that we have to setup
>a number of sites on our system, they all are allmost
>the same domain. Like mydomain.org, mydomain.net and mydomain.com
>Customer has all these domains and he wants only one
>website, but all domains should be accessible via email.
>
>A lot of thanks for your answers.
>
>Regards,
>
>Bert Catsburg
>
>
>> 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