I have 2 vhosts
e.g.:
{hosts, ["one", "two"]}.
how can i set different modules for each?
for one
{modules,
[
.... one set of modules ....]}.
{modules,
[.... set for two host ....]}.
To access the most up-to-date ejabberd documentation, please visit docs.ejabberd.im »
I have 2 vhosts
e.g.:
{hosts, ["one", "two"]}.
how can i set different modules for each?
for one
{modules,
[
.... one set of modules ....]}.
{modules,
[.... set for two host ....]}.
Patch available
Initially, 'host_config' is intended for this. However, it does not work with 'modules' and other parts of ejabberd.cfg.
A solution is to start ejabberd, and then modify the modules configuration manually using the Web Admin. However, this is not practical because those changes are not kept after a server restart.
So, I wrote a patch that allows you to define modules in a modular way:New option host_config_add .
With this patch, if you want both vhosts to have same modules, and each vhost to have certain modules:
This patch was integrated in
This patch was integrated in ejabberd:
http://support.process-one.net/browse/EJAB-297