Change the virtual host name

Hi to all,

I have installed ejabberd with a virtual host name that I do not like.

My question is, how can I change the virtual host name, or create a new one and disabled the old one with a new virtual host name.

Thank you in advance.
Costas.

http://www.ejabberd.im/migrat

Simply edit ejabberd.cfg

The link that Evadim showed is a tutorial in case you find problems when moving ejabberd to a different machine. I think that isn't your case.

If I understood you correctly, the solution to your problem is easy. Let's imagine you configured ejabberd to serve the virtual host "test.example.org". Now you want to remove that and add a new one: "jabber.example.org".

1. Edit ejabberd.cfg, and change the line that says:
{hosts, ["test.example.org"]}.
with this line:
{hosts, ["jabber.example.org"]}.

2. Restart ejabberd.

Please note that the accounts, roster items, ... that were created for the old virtual host are still stored in the internal database. But they are completely useless, because nobody will be able to login to those accounts.

Change the virtual host name

Hi, badlop

Yes this is the problem and more specific I would like to rename virtual host localhost to jabber.tritsako.awmn

I will try it and then will make some changes to the internal database.

Thank you.
Costas

Syndicate content