[horde] how should vhosts option in configuration work?

Jan Schneider jan at horde.org
Fri May 1 15:22:29 UTC 2009

Zitat von Michael Rubinsky <mrubinsk at horde.org>:

> Quoting dev at stean.ch:
>> hello all,
>> i enabled $conf[vhosts] and made a copy of horde/config/registry.php
>> to horde/config/registry-www.example.com.php
>> all i changed in that file was the name of the horde application,
>> so instead of Horde to Example.
>> now that virtual domain its horde installation is broken, all i
>> get in the logs is:
>> Cannot redeclare _detect_webroot() (previously declared in  
>> horde/config/registry.php:501) in  
>> horde/config/registry-www.example.com.php on line 527
>> what am i doing wrong ?
> You need to remove the _detect_webroot() function in all but one of  
> your registry.php files and hardcode the correct webwoot if you  
> going to load more then one registry file...to be honest, I wasn't  
> aware that virtual host support included seperate registry files...

Actually, you should not copy the configuration files to the vhost  
versions at all. You should only put those configuration settings in  
the vhost config files that you want to override from the defaults in  
the regular config file.


Do you need professional PHP or Horde consulting?

More information about the horde mailing list