[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] redirects
- Subject: RE: [cobalt-users] redirects
- From: "Gines Gazquez" <gines@xxxxxxxxxx>
- Date: Wed May 3 05:34:32 2000
uwe:
First, sorry for my english.
> how ich can do a redirect from one vHost to another?
>
> for example: www.mydomain.com redirect to www.mydomain.net
>
> i running a raq2.
The most simple way I used is:
At /etc/httpd/conf/httpd.conf, in Virtual Host block of www.mydomain.net (for example) add:
Server Alias www.mydomain.com
Server Alias mydomain.com
At /etc/sendmail.cw (if you need mail on mydomain.com) add:
mydomain.com
www.mydomain.com
At /etc/virtusertable (if you need mail on mydomain.com... again), below the line:
# Put custom additions below (Do not change/remove this line).
add:
@mydomain.com %1@xxxxxxxxxxxxxxxx
@www.mydomain.com %1@xxxxxxxxxxxx
Then restart Apache and mail. The work is done, and as I see works... All the accounts work with both domains to.
This may work on any Cobalt (Qube, RaqX, etc.) or non Cobalt.
Best regards.
Gines
- - - - -
Gines Gazquez
MadrynCom
e-mail: gines@xxxxxxxxxx
http://www.madryn.com