Xmpp BOSH模块未启动:Ejabberd/Strophe设置问题
我试图在Ubuntu12(Linode最新版本)上用Ejabberd网站服务器安装Strophe,为聊天服务 测试URL(和)都可以工作。Xmpp BOSH模块未启动:Ejabberd/Strophe设置问题,xmpp,ejabberd,strophe,Xmpp,Ejabberd,Strophe,我试图在Ubuntu12(Linode最新版本)上用Ejabberd网站服务器安装Strophe,为聊天服务 测试URL(和)都可以工作。 JWChat有效。 Strophe抛出一个错误: In Strophe: RECV: <body xmlns='http://jabber.org/protocol/httpbind' type='terminate' condition='internal-server-error'>BOSH module not started</bo
JWChat有效。
Strophe抛出一个错误:
In Strophe:
RECV: <body xmlns='http://jabber.org/protocol/httpbind' type='terminate' condition='internal-server-error'>BOSH module not started</body>
In ejabberd.log:
E(<0.468.0>:ejabberd_http_bind:1236) :
You are trying to use BOSH (HTTP Bind) in host "admin", but the module mod_http_bind is not started in that host.
Configure your BOSH client to connect to the correct host, or add your desired host`
任何帮助都将不胜感激。答案很明显 Strophe需要以下格式的用户名: username@host
如。admin@example.com 否则,它会假定用户名确实是主机,并且由于这样的主机不存在,它会抛出一个错误,即该主机中没有启动mod_http_bind 这个错误充其量只是一种误导,但从技术上讲,它确实解释了这个问题。
我试图只使用用户名登录[在JWChat中工作正常],因此出现了问题 如果这不起作用,请提供一些其他需要验证的事项的清单:
127.0.0.1 localhost.localdomain localhost
12.34.56.78 squire.example.com squire
%% Hostname
Hostname {hosts, ["example.com","98.765.43.21","localhost"]}.
ejabberdctl register username example.com password
如果用户是管理员,则包含在ejabberd.cfg中[注意:它必须也注册!]
%% Admin user
{acl, admin, {user, "", "localhost"}}.
{acl, admin, {user, "admin", "example.com"}}.
a. sudo ejabberdctl status
b. http://example.com:5280/admin
c. http://example.com:5280/http-bind
以下简短教程非常宝贵,请严格遵循:
a. sudo ejabberdctl status
b. http://example.com:5280/admin
c. http://example.com:5280/http-bind
sudo /etc/init.d/ejabberd restart
sudo ejabberdctl restart