[英]Candy OpenFire Jboss Apache
我安裝了Openfire,並根據candy文檔中的文檔設置了所有內容。
在Jboss和Openfire前面設置apache服務器。
編輯了etc / httpd / conf / httpd.conf文件:
ProxyRequests Off
ProxyPass /http-bind http://ip_of_machine:7070/http-bind
ProxyPassReverse /http-bind http://ip_of_machine:7070/http-bind
ProxyPass /myjavawebapp http://ip_of_machine:8080/myjavawebapp
ProxyPassReverse /myjavawebapp http://ip_of_machine:8080/myjavawebapp
跑
/usr/sbin/setsebool httpd_can_network_connect true
之后,如果我瀏覽瀏覽器
http://ip_of_machine/myjavawebapp
我看到了我的應用,如果我去
http://ip_of_machine/http-bind/
我得到這個頁面
Openfire HTTP Binding Service
我的糖果初始化代碼是這樣的
Candy.init('http-bind/', {
core: { debug: false },
view: { resources: '../res/' }
});
Candy.Core.connect();
我不確定如何與我的用戶/通行證進行Openfire連接。 我嘗試了不同的用戶/密碼組合,嘗試使用了不同的Candy.Core.connect配置,但是沒有運氣。
我可以從pidgin和任何其他客戶端連接到OpenFire,但是為此,我正在使用端口5222
當我在Candy.Core.connect中添加一些值(僅帶有一個參數)時,僅要求我輸入用戶名,然后輸入用戶名,然后它看起來像是對HTTP綁定的無限循環請求,每次返回都相同事情
Openfire HTTP Binding Service
我不確定是否錯過了OpenFire的某些設置,還是Apache設置了某些錯誤,或者javascript代碼有什么錯誤,還是其他錯誤。
有什么想法,建議嗎?
找到解決方案。 我的apache設置和javascript代碼出錯
首先,我像這樣設置apache conf
ProxyPass /myjavawebapp http://ip_of_machine:8080/myjavawebapp
ProxyPassReverse /myjavawebapp http://ip_of_machine:8080/myjavawebapp
AddDefaultCharset UTF-8
Options +MultiViews
RewriteEngine On
RewriteRule http-bind/ http://ip_of_machine:7070/http-bind/ [P]
之后,我修改了javascript糖果代碼,就像這樣
Candy.init('/http-bind/', {
core: { debug: true ,autojoin: ['muc@conference.ip_of_machine']}
,
view: { resources: '../res/' }
});
Candy.Core.connect();
我使用用戶名作為
myusername@ip_of_machine
和我的用戶的密碼,所有這些都起作用:)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.