【发布时间】:2013-01-19 18:07:56
【问题描述】:
我安装了 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-bind 的无限循环请求,每个时间返回相同的东西
Openfire HTTP Binding Service
我不确定我是否错过了 OpenFire 的某些设置,或者 Apache 的设置有问题,或者 javascript 代码有问题,或者其他什么。
有什么想法、建议吗?
【问题讨论】:
标签: javascript apache jboss xmpp openfire