[horde] how should vhosts option in configuration work?

dev at stean.ch dev at stean.ch
Sat May 2 14:13:12 UTC 2009


thanks jan and michael,

i prefer jan his method, just took the part of the file
i wanted to change for each domain. works the way i wished now.

regards stephan


Quoting Jan Schneider <jan at horde.org>:

> 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.
>
> Jan.
>
> -- 
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
>
> --
> Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>




More information about the horde mailing list