我安装了Openfire,按照candy文档中的文档进行了设置。
将apache服务器设置在Jboss和Openfire前面。
编辑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代码有什么问题,或者是别的什么。
有什么建议吗?
发布于 2013-01-21 19:38:15
找到解决方案了。我的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和我的用户的密码,这一切都起作用了:)
https://stackoverflow.com/questions/14417231
复制相似问题