2015-02-10 27 views
2

我已經安裝了openfire作爲xmmp converse.js作爲服務器和聊天客戶端和操作系統Windows 8.I探測與pidgin openfire和工作。我不能Openfire的連接converse.js,我也做了以下內容: -I啓用HTTP中的Openfire如何使用openfire連接converse.js?

結合由-I修改converse.js指數:

require(['converse'], function (converse) { 
converse.initialize({ 
auto_list_rooms: false, 
auto_subscribe: false, 
bosh_service_url: 'http://localhost:7070/http-bind/', 
hide_muc_server: false, 
i18n: locales.en, // Refer to ./locale/locales.js to see which locales are supported 
prebind: false, 
show_controlbox_by_default: true, 
roster_groups: true 
}); 
    }); 

-I去了防火牆並啓用連接所需的端口(5222,5229,7070和7443)

-I在openfire中插入值爲16的xmpp.httpbind.worker.threads和xmpp.client.processing.threads屬性

-I modify a帕什的httpd.conf:啓用的LoadModule proxy_http_module和的LoadModule proxy_module和我說:

將ProxyRequests關閉

的ProxyPass/HTTP綁定http://127.0.0.1:7070/http-bind/

ProxyPassReverse/HTTP綁定http://127.0.0.1:7070/http-bind/

當我登錄與openfire的用戶窗口保持連接。

如果有人有關於如何與openfire連接的指南converse.js我會有所幫助。

謝謝,對不起我的英語

回答

1

你bosh_service_url實際上應該是「http://localhost/http-bind/」,因爲你正在運行一個代理服務器。我假設你的Apache服務器運行在標準的80端口上。儘管如果你只關閉Apache,你應該可以直接使用當前的converse.js配置連接到openfire。