ejabberd + yaws as a module

Hello,

I'll start with a summary of my problem, then explain further : I want to use Yaws as a webserver on the machine where ejabberd runs, in order to provide a highly-scalable online jabber client (JWChat being the chosen one).

So I installed ejabberd, yaws, mod_yaws, and at this point I get confused. From what I understood, the mechanism should be :
End-user gets to the main webpage of the server (being http://localhost/ at the moment), where he can get all the JWChat files he needs. JWChat is configured to fetch data from http://localhost/http-poll/ by default, which url is proxied to http://localhost:5280/ by Yaws to the ejabberd_http module. Until there, I'm ok and it seems to be what I get (judging from ejabberd logs).
Yet, it seems like the http-poll module is joined through http://localhost:5280/http-poll/, and I couldn't find any way to change that url. Even though I'd prefer using HTTP binding (and I'd come back to that later), the problem is that I can't get Yaws to forward the user's requests to http-poll/, but only to the root (http://localhost:5280/) of the website.
So at the moment, I can't get Yaws connected to the HTTP polling module, and I'd appreciate some lights about it.

My second problem is the usage of HTTP Binding. I've tried to install mod_http_binding, but since I'm poor on configuring (as you had guessed by now), I couldn't find which url it gets bound to by ejabberd. That's my second problem, hoping you have help to share on this one too.

as references, I followed these tutorials :
http://www.ejabberd.im/yawspack/build
http://www.ejabberd.im/ejabberd_http_bind

I'm most probably forgetting things, but I can't think anymore after a day of headaches on these problems x)

Thanks for your help, all of you !

Syndicate content