Looking for ejabberd docs?

Install JWChat with ejabberd's HTTP-Bind and file server

Submitted by mfoss on Fri, 2007-11-02 23:36

ejabberd includes a HTTP-Bind service and a simple HTTP file server since ejabberd 2.0.0. With all this, ejabberd can serve web clients like JWChat and MUCkl, and you don't need to setup additional programs like a web server.

This tutorial explains how to get JWChat to work with ejabberd 2.0.0 or newer. It is assumed you already have ejabberd installed and working correctly.

I used the latest Jwchat by cvs and the latest jsjac by svn and the instruction here to set up ejabberd 2.0.3 in Freebsd 7.2 prerelease. It works both with firefox and IE. The polling works only with IE. Someone said IE breaks with httpbinding. It is not true for me.
The good news is that, now I get firefox3 on freebsd to chat. with polling, it never happened.

This is a better way to set up ejabberd. We do not won't fool around with Apache and Tomcat any more.

When you want to try this, please do not forget read the README.CVS file.
By the way, you have to install a lot perl files
You can do it this way:

The make install is using bash. They assume it is in /bin/
If you are using csh,
you have to whereis bash
My bash is in /usr/local/bin/
So you have to change the cplibs.sh file.
If you do not have bash, you have to make one before make install.

Same story here.. I went ahead and tried to make a blank page in my web directory and I can see the requests in the logs -- they just aren't being served.
if I look at my /var/lib/ejabberd/ejabberd.log I can see this:

Not found

I have Jabber on a different server from where jwchat is installed. I am in the process of trying to figure out how to integrate jwchat inside our portal. So, I have jwchat installed where are portal resides. Does anyone know if this is going to be a problem? Is there any additional steps that I will need to take to point to my remote jabber server?

I have installed ejabberd and jwchat as described above, modified appropriately for windows. Ejabberd seems to be running fine, and i can login using jwchat from a browser running locally. However when i try to login using jwchat from a browser on a different machine, then a session is not opened. I get the login page, and the chat pop-up, and looking in the logs i can see that my username, password is authenticated. But for some reason no session is actually opened.

I wonder though how to make the URL to access the JWChat installation a little more readable. Using Apache to serve JWChat made this as easy as defining a

<Location /jwchat>...</Location>

which made the JWChat installation available at http://jabber.example.org/jwchat. What would be the best way to achieve this using the new method presented in this tutorial? Apache's mod_rewrite? Or is there an easier and more elegant way?

I'm actually looking for same solution using Apache, since I require server side script processing using the web server like apache and also would like to enable http-bind service of ejabberd 2.0. Trying the same setting proxypass / mod_rewrite but nothing helped me to achieve the solution. Apache return upstream error. To know more about my confirguration http://www.ejabberd.im/node/1560#comment-51601