how to use multiple domains on an ejabberd server…

{hosts, [“example.org”, “example.com”]}.

{listen,
[

{5222, ejabberd_c2s, [

%%
%% If TLS is compiled and you installed a SSL
%% certificate, put the correct path to the
%% file and uncomment this line:
%%
%%{certfile, “/path/to/ssl.pem”}, starttls,

%% No need to specify certfile here, check domain_certfile
starttls,

{access, c2s},
{shaper, c2s_shaper},
{max_stanza_size, 65536}
]},

]
}.

%%
%% domain_certfile: Specify a different certificate for each served hostname.
%%
{domain_certfile, “example.org”, “/path/to/example_org.pem”}.
{domain_certfile, “example.com”, “/path/to/example_com.pem”}.