[RCU] Multiple domains

Kanwar Ranbir Sandhu m3freak at thesandhufamily.ca
Fri May 2 07:54:44 CEST 2008


On Thu, 2008-05-01 at 23:32 -0500, Kyle Wheeler wrote:
> I do that; it's pretty easy, once you figure it out, but it's not 
> really an obvious trick.

Why is it a trick, though?  There appears to be two documented methods
to do multiple domains with one install - either one should be enough

> I've never played with that... I prefer things I can read all at once.
> 
> Here's what I do:
> 
> $vdomainmapping = array(
>          'domain1.com' => 'domain1.com',
>      'www.domain1.com' => 'domain1.com',
>          'domain2.com' => 'domain2.com',
>      'www.domain2.com' => 'domain2.com',
>      );
> if (isset($vdomainmapping[$_SERVER['HTTP_HOST']])) {
>      $rcmail_config['username_domain'] = $vdomainmapping[$_SERVER['HTTP_HOST']];
> } else {
>      $rcmail_config['username_domain'] = '';
> }

Holy shit.  Firstly, where do I put that? Secondly, why the hell is any
of that necessary when roundcube is supposed to have easily
configurable, built in support for multiple domains?!  I'm absolutely
dumb founded.

Thanks for the reply.  I appreciate it.

Regards,

Ranbir

-- 
Kanwar Ranbir Sandhu
Linux 2.6.22.14-72.fc6 i686 GNU/Linux 
01:50:06 up 5 days, 19:49, 3 users, load average: 0.40, 0.17, 0.12 


_______________________________________________
List info: http://lists.roundcube.net/users/



More information about the users mailing list