我正在尝试创建一个定制的Facebook聊天,我正在使用:
apache位于一台pc上,ejabberd位于另一台计算机上,我使用
<Proxy *>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Proxy>
ProxyPass /http-bind http://my_bosh_domain:5280/http-bind/ nocanon
ProxyPassReverse /http-bind http://my_bosh_domain:5280/http-bind/我记录请求并得到以下错误:
bosh module not started 当我从浏览器中检查http://my_bosh_domain:5280/http-bind/时,我可以看到:
ejabberd mod_http_bind
An implementation of XMPP over BOSH (XEP-0206)
This web page is only informative. To use HTTP-Bind you need a Jabber/XMPP client that supports it.我遗漏了什么?
更新
我已将代理设置更改为:
<Proxy *>
Order deny,allow
Allow from all
</Proxy>现在我得到了以下回应:
<body xmlns='http://jabber.org/protocol/httpbind' xmlns:xmpp='urn:xmpp:xbosh'
xmlns:stream='http://etherx.jabber.org/streams' sid='6093aa55412842f7be3de1b33fd2a307df4ae2fa' wait='60'
requests='2' inactivity='120' maxpause='120' polling='2' ver='1.8' from='chat.facebook.com' secure='true'
authid='3105619037' xmpp:version='1.0'>
<stream:features xmlns:stream='http://etherx.jabber.org/streams'>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-1</mechanism>
<mechanism>DIGEST-MD5</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.process-one.net/en/ejabberd/'
ver='TQ2JFyRoSa70h2G1bpgjzuXb2sU='/>
<register xmlns='http://jabber.org/features/iq-register'/>
</stream:features>
这是错误的,我原以为把X平台作为其中的一种机制。有什么想法吗?
发布于 2012-07-29 07:32:12
经过一个多星期的奋斗,我开始工作,我改用了旁遮普,而不是节点服务器,一切都很好。所以基本上结构是:
Strophe.js <-> Apache (代理) <->旁遮普<-> Facebook XMPP服务器
发布于 2012-07-25 18:31:45
上一次我遇到了这个问题(我现在又遇到这个问题了;-)问题是,我需要将我试图访问BOSH服务器的HTTP主机添加到“主机”配置选项中。
祝好运!
发布于 2013-02-27 09:08:13
https://stackoverflow.com/questions/11651990
复制相似问题