How to specify server for specific domain

I am trying to set up two ejabberd servers in different domains, to test how different clients behave when using federation. The servers are running on the same host but listening on different ports. How do I configure each server so that requests for a resource on the other server are correctly routed?

Syndicate content