Configuration ejabberd未解析多个域
意图:使用一台Ubuntu主机托管多个聊天服务器。Configuration ejabberd未解析多个域,configuration,ejabberd,Configuration,Ejabberd,意图:使用一台Ubuntu主机托管多个聊天服务器。 OS: Ubuntu 14.04 Server: ejabberd 我有一个静态IP,在我的内部(公司)网络的VirtualBox上运行一个Ubuntu虚拟机,我已经将所有jabber流量转发到运行ejabberd服务器的Ubuntu机器 我还有一些域名:我们叫它们example.com、example.net和example.org。我添加了聊天记录,比如chat.example.com、chat.example.net和chat.exam
OS: Ubuntu 14.04
Server: ejabberd
我有一个静态IP,在我的内部(公司)网络的VirtualBox上运行一个Ubuntu虚拟机,我已经将所有jabber流量转发到运行ejabberd服务器的Ubuntu机器
我还有一些域名:我们叫它们example.com、example.net和example.org。我添加了聊天记录,比如chat.example.com、chat.example.net和chat.example.org,并将它们指向我的静态IP地址,然后我的路由器将它们转发到运行ejabberd服务器的Ubuntu虚拟机。这些A记录是几天前添加的
我还更新了ejabberd配置文件,以反映管理员用户和域,如下所示:
%% Admin user
{acl, admin, {user, "najeeb", "chat.example.com"}}.
{acl, admin, {user, "najeeb", "chat.example.net"}}.
{acl, admin, {user, "najeeb", "chat.example.org"}}.
%% Hostname
{hosts, ["localhost", "chat.example.com", "chat.example.net","chat.example.org"]}.
我还使用ejabberdctl命令行实用程序成功地向上面列出的每个域添加了几个用户(包括用户“najeeb”)
虽然我可以使用凭据连接到ejabberdnajeeb@chat.example.com,我无法连接到其他聊天室,例如najeeb@chat.example.net或najeeb@chat.example.org. (我使用Pandion作为我的客户端。)但是,当我将Pandion客户端中的连接设置切换到我的IP地址(作为主机)时,连接工作正常
我还尝试将这样的条目添加到我的/etc/hosts文件中,如下所示:
127.0.0.1 localhost
127.0.1.1 example.com myhost # myhost is my Ubuntu hostname
127.0.0.1 chat.example.com
127.0.0.1 example.net
127.0.0.1 chat.example.net
127.0.0.1 example.org
127.0.0.1 chat.example.org
我尽了最大的努力来解决这个问题,但这是不可能的
谢谢。正如您所说,使用IP地址可以成功连接到每个域,在我看来,您的网络配置不正确。您的/etc/hosts似乎没有得到适当考虑 请注意,一行显示127.0.1.1,另一行显示127.0.0.1 你确定这是正确的吗