ejabberd - Comments for "Configuration for two domains on one host" https://www.ejabberd.im/forum/29893/configuration-two-domains-one-host en I copied your config, and https://www.ejabberd.im/forum/29893/configuration-two-domains-one-host#comment-67867 <p>I copied your config, and removed all the certfile and tls options (obviously). Anyway, ejabberd failed to start because port 5443 is defined twice. After I fixed that, I also had to disable mod_http_upload, because it can only be started for one vhost.</p> <p>After all those changes, ejabberd started correctly. I created an account in domain1.com, logged in, and it could Discovery correctly the conference service. Then I created another account in domain2.com, logged in, and it could discover correctly the second conference service.</p> <p>&gt; Is it possible to find a working and correct example of a full configuration on two domains?</p> <p>Basically, the default config, just adding another line at the beginning of the file, in that hosts: option.</p> Wed, 28 Mar 2018 20:30:08 +0000 badlop comment 67867 at https://www.ejabberd.im > Is that true in your https://www.ejabberd.im/forum/29893/configuration-two-domains-one-host#comment-67866 <p>&gt; Is that true in your tests?</p> <p>Yes, main functionality works fine.</p> <p>&gt; What fails exactly?</p> <p>MUC and httpupload.<br /> When i try to do XMPP Service discovery, i could access only to domain1.com services. domain2.com discovery shows nothing...<br /> When i try to see rooms on domain2.com, i get error '403: Server connections to local subdomains are forbidden'</p> <p>Also, i tried two different 'append_host_config:' in mods section - same result, second domain doesn't show any XMPP Services.</p> <p>Is it possible to find a working and correct example of a full configuration on two domains?</p> Wed, 28 Mar 2018 12:20:24 +0000 federk comment 67866 at https://www.ejabberd.im With that configuration, https://www.ejabberd.im/forum/29893/configuration-two-domains-one-host#comment-67864 <p>With that configuration, ejabberd will serve hosts domain1.com and domain2.com. This means you can register accounts like <noindex><a href="mailto:jan@domain1.com" rel="nofollow" >jan@domain1.com</a></noindex> and <noindex><a href="mailto:bob@domain2.com" rel="nofollow" >bob@domain2.com</a></noindex> </p> <p>Those are different accounts. Each one has its contacts...</p> <p>Is that true in your tests? What fails exactly?</p> <p>Regarding MUC, you can create rooms named like <noindex><a href="mailto:techsupport@conference.domain1.com" rel="nofollow" >techsupport@conference.domain1.com</a></noindex>, or <noindex><a href="mailto:esperanto@conference.domain2.com" rel="nofollow" >esperanto@conference.domain2.com</a></noindex></p> <p>Each MUC service is separated, and has its own rooms...</p> Wed, 28 Mar 2018 11:34:47 +0000 badlop comment 67864 at https://www.ejabberd.im