ejabberd - Comments for "How to handle multiple domains" https://www.ejabberd.im/node/2823 en AH! https://www.ejabberd.im/node/2823#comment-51748 <p>Gotcha! Thanks, that's exactly what I needed.</p> Wed, 06 Feb 2008 14:10:04 +0000 linuxelf comment 51748 at https://www.ejabberd.im Setup a database for each domain https://www.ejabberd.im/node/2823#comment-51743 <p>Currently you have two domains, and you are using the same database for both domains?</p> <pre>{hosts, ["domain1", "domain2"]}. {auth_method, [odbc]}. {mysql, "Server", "Database", "Username", "Password"}.</pre><p> I think you must setup a different database for each domain:</p> <pre>{hosts, ["domain1", "domain2"]}. {auth_method, [odbc]}. {host_config, "domain1", [ {mysql, "Server", "Database_domain1", "Username", "Password"} ] }. {host_config, "domain2", [ {mysql, "Server", "Database_domain2", "Username", "Password"} ] }.</pre> Wed, 06 Feb 2008 01:23:48 +0000 mfoss comment 51743 at https://www.ejabberd.im