私はカスタムFacebookチャットを作成しようとしています、私は使用しています:
- ejabberd
- ストローフィ
- アパッチ
apacheは1つの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>
これは間違っています。メカニズムの1つとしてX-FACEBOOK-PLATFORMを取得することを期待していました。何か案が?