Roundcube Community Forum

 

Help with multiple domain setup

Started by jeff_r, June 11, 2012, 11:58:38 AM

Previous topic - Next topic

jeff_r

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.

jeff_r

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?  ;)

oldschool

#2
EDIT: I have to check diz...
:)


Rgds.

jeff_r

#3
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!

oldschool