ejabberd - Comments for "configure ejabberd.cfg for diffrent vhost" https://www.ejabberd.im/node/1610 en This patch was integrated in https://www.ejabberd.im/node/1610#comment-37658 <p>This patch was integrated in ejabberd:<br /> <noindex><a href="http://support.process-one.net/browse/EJAB-297" title="http://support.process-one.net/browse/EJAB-297" rel="nofollow" >http://support.process-one.net/browse/EJAB-297</a></noindex></p> Fri, 03 Aug 2007 21:46:13 +0000 mfoss comment 37658 at https://www.ejabberd.im Patch available https://www.ejabberd.im/node/1610#comment-26167 <p>Initially, 'host_config' is intended for this. However, it does not work with 'modules' and other parts of ejabberd.cfg.</p> <p>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.</p> <p>So, I wrote a patch that allows you to define modules in a modular way: <noindex><a href="http://www.jabber.ru/bugzilla/show_bug.cgi?id=241" rel="nofollow" >New option host_config_add</a></noindex>.</p> <p>With this patch, if you want both vhosts to have same modules, and each vhost to have certain modules:</p> <pre>% This ejabberd server has two vhosts: {hosts, ["one.example.org", "two.example.org"]}. % Configuration of modules that are common on both vhosts {modules, [ {mod_register, [{access, register}]}, {mod_roster, []}, {mod_privacy, []}, {mod_adhoc, []}, {mod_configure, []}, {mod_disco, []}, {mod_stats, []}, {mod_vcard, []}, {mod_offline, []}, {mod_announce, [{access, announce}]}, % Depends on mod_adhoc {mod_private, []}, {mod_irc, []}, {mod_pubsub, [{access_createnode, pubsub_createnode}]}, {mod_time, []}, {mod_last, []}, {mod_proxy65, []}, {mod_version, []} ]}. % Add some modules to vhost one: {host_config, "one.example.org", [{{add, modules}, [ {mod_http_bind, []}, {mod_muc, [{host, "chatrooms.one.example.org"} {access, muc}, {access_create, muc}, {access_admin, muc_admin}]}, {mod_logxml, []} ]}]}. % Add some modules to vhost two: {host_config, "two.example.org", [{{add, modules}, [ {mod_muc, [{host, "muc.two.example.org"} {access, muc}, {access_create, muc}, {access_admin, muc_admin}]}, {mod_echo, [{host, "eeeeecho.two.example.org"}]} ]}]}.</pre> Fri, 06 Jul 2007 10:41:51 +0000 mfoss comment 26167 at https://www.ejabberd.im