Roundcube Community Forum

Miscellaneous => Roundcube Discussion => Topic started by: jeff_r on June 11, 2012, 11:58:38 AM

Title: Help with multiple domain setup
Post by: jeff_r 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.
Title: Re: Help with multiple domain setup
Post by: jeff_r 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?  ;)
Title: Re: Help with multiple domain setup
Post by: oldschool on June 18, 2012, 05:29:57 PM
EDIT: I have to check diz...
:)


Rgds.
Title: Re: Help with multiple domain setup
Post by: jeff_r 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!
Title: Re: Help with multiple domain setup
Post by: oldschool on June 19, 2012, 05:58:30 PM
Nice, you got it.
;D


Rgds.