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
4、修改strophe的例子中的basic.js中的var BOSH_SERVICE = 'http-bind/'
5、打开http://localhost/strophejs/examples/basic.html, 用创建的用户登录。jid的格式为:username@domainName