Author Topic: Help with multiple domain setup  (Read 7491 times)

Offline jeff_r

  • Newbie
  • *
  • Posts: 9
Help with multiple domain setup
« on: June 11, 2012, 11:58:38 AM »
Hi,
I have Roundcube 0.7.2 running nicely on my server but would like to customize the "product_name" variable for the domains I serve.  I tried following these instructions - http://trac.roundcube.net/wiki/Howto_Config - but it doesn't seem to be working.

I tried to tacks.
1)
Set $rcmail_config['include_host_config'] = true;
and create files in /usr/share/roundcubemail/config to the domains.  (ie, fiorica.net got fiorica.net.inc.php)

That didn't work - the "product_name" from the main.inc.php was still being used.

2)  I tried the array approach:
$rcmail_config['include_host_config'] = array(
    'loonlover.net' => 'loonlover_config.inc.php',
    'fiorica.net' => 'fiorica_config.inc.php',
);

Same result.

I checked $HTTP_HOST using phpinfo and it matches the array keys.

Is there something I'm missing?  It seems like it should be very simple from the instructions.

Offline jeff_r

  • Newbie
  • *
  • Posts: 9
Re: Help with multiple domain setup
« Reply #1 on: June 18, 2012, 11:53:33 AM »
I'm puzzled by the lack of response... is this something no one else is using or are you all stunned silent by my cluelessness?  ;)

Offline oldschool

  • Sr. Member
  • ****
  • Posts: 406
Re: Help with multiple domain setup
« Reply #2 on: June 18, 2012, 05:29:57 PM »
EDIT: I have to check diz...
:)


Rgds.
« Last Edit: June 18, 2012, 05:37:50 PM by oldschool »

Offline jeff_r

  • Newbie
  • *
  • Posts: 9
Re: Help with multiple domain setup
« Reply #3 on: June 19, 2012, 10:16:46 AM »
AHA!  I didn't have <?php at the top of my domain-specific config file.

Just as a minor point, I don't think this error should fail silently like this.  At this point in rcube_config.php, we already know the user has specified multiple config files, that they exist, and are readable.  So what the user is intending to do is obvious.  If the "include" line fails because of a syntax error in the config file, it should produce an error!
« Last Edit: June 19, 2012, 11:04:01 AM by jeff_r »

Offline oldschool

  • Sr. Member
  • ****
  • Posts: 406
Re: Help with multiple domain setup
« Reply #4 on: June 19, 2012, 05:58:30 PM »
Nice, you got it.
;D


Rgds.