Xmpp 带http绑定的strophe.js无法加载资源404未找到

Xmpp 带http绑定的strophe.js无法加载资源404未找到,xmpp,ejabberd,strophe,Xmpp,Ejabberd,Strophe,我试图使用strophe.js连接ejabberd服务器,但出现以下错误: POST http://localhost/http-bind/ 404 (Not Found) Strophe.Bosh._processRequest.sendFunc @ strophe.js:4614 Strophe.Bosh._processRequest @ strophe.js:4626 Strophe.Bosh._throttledRequestHandler @ strophe.js:4778 Str

我试图使用strophe.js连接ejabberd服务器,但出现以下错误:

 POST http://localhost/http-bind/ 404 (Not Found)
Strophe.Bosh._processRequest.sendFunc @ strophe.js:4614
Strophe.Bosh._processRequest @ strophe.js:4626
Strophe.Bosh._throttledRequestHandler @ strophe.js:4778
Strophe.Bosh._connect @ strophe.js:4177Strophe.Connection.connect @ strophe.js:2335
$scope.login @ app.js:162
fn @ VM165:4
Ic.(anonymous function).compile.d.on.f @ angular.js:23411
$get.n.$eval @ angular.js:15916
$get.n.$apply @ angular.js:16016
(anonymous function) @ angular.js:23416
n.event.dispatch @ jquery-2.1.3.min.js:3
n.event.add.r.handle @ jquery-2.1.3.min.js:3
strophe.js:2784 7

我发现Skype有时会使用分配给Apache服务器的端口80。这可能会阻止http绑定。退出Skype后,它工作正常。

您如何在
ejabberd.yml
中配置
ejabberd\u http
http\u bind
?我添加了mod\u http\u bind模块以启用绑定,我找到了解决这个问题的办法。Apache服务器和skype使用相同的端口,这会阻止与服务器的连接。当我退出skype并尝试时,它工作正常。