terça-feira, 9 de fevereiro de 2010

Configuring JWChat with Openfire

After spend a lot of my precious time I got it working...



1. In httpd.conf, add (or uncomment) the lines below:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
VirtualHost *:80>
ServerName chat.ursite.br
DocumentRoot /var/www/html/jwchat
Directory /var/www/html/jwchat>
Options +MultiViews
/Directory>
AddDefaultCharset UTF-8
ProxyPass /http-bind/ http://127.0.0.1:7070/http-bind/
/VirtualHost>

2. In config.js only left the Backend:
name:"Native Binding",
description:"Ejabberd's native HTTP Binding backend",
httpbase:"/http-bind/",
type:"binding",
servers_allowed:[SITENAME]

3. Edit jsjac.js file n set JSJACHBC_USE_BOSH_VER to false value;

4. Edit jwchat.html file n add “oArg.authtype = 'nonsasl';“ immediatly before the line “con.connect(oArg);“;

5. In Openfire properties, add:
xmpp.httpbind.client.requests.polling = 0
xmpp.httpbind.client.requests.wait = 10

6. Restart ur Openfire n try ur new webapp at chat.ursite.br

N be happy!

Nenhum comentário:

Postar um comentário