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

[cobalt-users] Two domains One VSite



Hi Claudio,

Its a bit more work on a RaQ3, but...

Create your main site using the GUI, and do whatever manual alterations that
you need for http.  Then, go to the Control Panel section of the GUI, and
add your secondary domain name, both with and without the "www" to the
"Host/Domain Aliases" box (this makes sure that the domain name is entered
into sendmail.cw, allowing the server to accept emails for that domain
name).

Then, telnet into the box, and edit the /etc/virtusertable (make sure you
copy it first :-)   You just need to add the aliases that you will be using
at the secondary domain, then the username for the pop box / forwarding
address that the mails should be sent to - eg:

myaliases@xxxxxxxxxxxxx     username
myotheralias@xxxxxxxxxxxxx     me@xxxxxxx

You should make sure that they are added with the "www" in front of it.
When you've added all of the aliases you need, you add the following line:

@domain.it  %1@xxxxxxxxxxxxx   (so that mail will be accepted for
user@xxxxxxxxx as well as user@xxxxxxxxxxxxx)

Then, save the file, and run the following command to rebuild the alias
database:

makemap hash /etc/virtusertable < /etc/virtusertable

That should sort it out for you.  One other point though, with regards to
your httpd.conf changes - if you've just added these to the standard
/etc/httpd/conf/httpd.conf file, the GUI will probably overwrite them  You
should put them into a separate file, eg /etc/httpd/conf/myconf.conf and
then add the following line to your httpd.conf file:

Include /etc/httpd/conf/myconf.conf

Hope it all works.

Cheers,
               Dave Rowlands




----- Original Message -----
From: "Claudio Cataldo" <claudio.cataldo@xxxxxxx>
To: <lists@xxxxxxxxxxxxxxxxxxx>
Sent: Monday, April 23, 2001 1:13 PM


> Thank you Dave for your reply but I'm on a Raq3
>
> Do you have a solution?
>
>
>
> Message: 6
> From: "Claudio Cataldo" <claudio.cataldo@xxxxxxx>
> To: <cobalt-users@xxxxxxxxxxxxxxx>
> Date: Mon, 23 Apr 2001 12:27:23 +0200
> Subject: [cobalt-users] Two domains One VSite
> Reply-To: cobalt-users@xxxxxxxxxxxxxxx
> I have registered two domains like domain.com and domain.it for the same
> Virtual Site.
> I would like to automatically redirect all the .it incoming traffic to the
> ..com. So I modified the httpd.conf this way
> <VirtualHost 216.219.239.31>
> ServerName www.domain.it
> ServerAdmin admin
> DocumentRoot /home/sites/site41/web
> ServerAlias domain.it
> ServerAlias www.domain.com
> ServerAlias domain.com
> RewriteEngine on
> RewriteCond %{HTTP_HOST} !^216.219.239.31(:80)?$
> RewriteCond %{HTTP_HOST} !^www.domain.it(:80)?$
> RewriteRule ^/(.*) http://www.domain.it/$1 [L,R]
> RewriteOptions inherit
> AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site41/users/$1/web/$3
> AddHandler cgi-wrapper .cgi
> AddHandler cgi-wrapper .pl
> AddHandler server-parsed .shtml
> AddType text/html .shtml
> ScriptAlias /_vti_bin/_vti_adm/ /home/sites/site41/web/_vti_bin/_vti_adm/
> ScriptAlias /_vti_bin/_vti_aut/ /home/sites/site41/web/_vti_bin/_vti_aut/
> ScriptAlias /_vti_bin/ /home/sites/site41/web/_vti_bin/
> AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site41/users/$1/web/$3
> </VirtualHost>
> All works fine but the email. Is there a way through the GUI (or manually)
> to redirect also info@xxxxxxxxx to info@xxxxxxxxxx?
>