Skip to content


Virtual domains for jabberd2

One of jabberd2 annoyances was its requirement to run one SM instance for every serviced domain. I already did some work for dynamic jabberd2 configuration introducing default host option in c2s.xml to remove requirement of restarting C2S every time one adds new serviced domain. But it still required launching separate SM process instance.

Today I committed virtual domains support changes to SVN branch http://codex.xiaoka.com/svn/jabberd2/branches/vhosts which allows you to configure more than one serviced domain in only one SM instance.
I successfully configured 3 domains in one SM instance and was able to talk between these 3 and one another in second SM process. All 4 connected to one Router process instance.

Unexpectedly it was pretty simple – it took me only ~6h. to get it working. :-)

Of course all domains serviced in one SM process have identical configuration. If you need domains with different configuration, you need to create another sm.xml and launch separate SM process for them.

The SVN vhosts branch changes need some polishing and testing. I would appreciate if you tried these and tell me what you think.


Posted in Announcement, Jabber/XMPP, Software.

Tagged with , .


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.