ejabberd - Comments for "ejabberd can&amp;#039;t see virtual host" https://www.ejabberd.im/node/3466 en Some ideas https://www.ejabberd.im/node/3466#comment-54158 <div class="quote-msg"> <div class="quote-author"><em>brain2xml</em> wrote:</div> <p>We have host 'maminaeda.ru' on this panell </p></div> <p>Just make sure your ejabberd.cfg has:</p> <pre> {hosts, ["maminaeda.ru"]}. </pre><p> If you have several domains, and you want ejabberd to serve the virtual hosts, then you can put:</p> <pre> {hosts, ["maminaeda.ru", "example2.ru", "supercorp.com"]}. </pre><div class="quote-msg"> <div class="quote-author"><em>brain2xml</em> wrote:</div> <p>ejabberdctl --node <noindex><a href="mailto:ejabberd@maminaeda.ru" rel="nofollow" >ejabberd@maminaeda.ru</a></noindex><br /> RPC failed on the node 'ejabberd@help.ru': nodedown </p></div> <p>The node name is not related with virtual host. No need to specify --node ...</p> <div class="quote-msg"> <div class="quote-author"><em>brain2xml</em> wrote:</div> <p>server works but only on machine name host when I try to swith on other host </p></div> <p>Do you want to use the database of ejabberd from machine1 in an ejabberd that you have installed in machine2? In this case, you copy ejabberd.cfg and the Mnesia spool files from machine1 to machine2. Then, try to start ejabberd in machine2.</p> <p>If it doesn't start correctly and shows some error like this:</p> <pre> =ERROR REPORT==== 11-Apr-2009::00:29:53 === E(&lt;0.38.0&gt;:ejabberd_config:278) : Error reading Mnesia database spool files: The Mnesia database couldn't read the spool file for the table 'config'. ejabberd needs read and write access in the directory: /var/lib/ejabberd/db/ejabberd Maybe the problem is a change in the computer hostname, or a change in the Erlang node name, which is currently: ejabberd@machine2 Check the ejabberd guide for details about changing the computer hostname or Erlang node name. </pre><p>Then you must know the node name in machine1. It probably was 'ejabberd@machine1'.</p> <p>Now in machine2 try to start ejabberd again, this time providing the node name:</p> <pre> $ ejabberdctl live --node ejabberd@machine1 </pre><p> In your case, machine1 and machine2 may be help.ru, or loft2239.serverloft.com or some other names.</p> Fri, 10 Apr 2009 22:35:57 +0000 mfoss comment 54158 at https://www.ejabberd.im