`

openfire+strophe搭建xmpp环境

 
阅读更多

1、分别下载openfire, strophe, apache

 

2、配置apache为反向代理:

2.1 加载如下的mod:mod_proxy,mod_proxy_http

2.2 配置代理:

ProxyRequests Off 
ProxyPass /strophejs/examples/http-bind/ http://localhost:7070/http-bind/
ProxyPassReverse /strophejs/examples/http-bind/ http://localhost:7070/http-bind/

 

3、在openfire中增加用户:

3.1 打开http://127.0.0.1:9090

3.2 创建用户。主要:用户名称中不需要有域名

 

4、修改strophe的例子中的basic.js中的var BOSH_SERVICE = 'http-bind/'

 

5、打开http://localhost/strophejs/examples/basic.html, 用创建的用户登录。jid的格式为:username@domainName

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics