proxy error with ejabberd +httpbind

Hi all,

my config : Linux Debian, Apache 2.2.3, erlang 11.b.2-4, ejabberd from svn trunk, http_bind form svn ejabberd_modules, Jwchat

Jwchat works, users connexions works but some minutes after the connexion I got that in my apache2 log :
[Mon Apr 09 18:46:55 2007] [error] [client 192.168.0.3] proxy: error reading status line from remote server 192.168.0.1
[Mon Apr 09 18:46:55 2007] [error] [client 192.168.0.3] proxy: Error reading from remote server returned by /http-bind/

it seems that the problem with proxy is a apache2 known problem :
http://www.ejabberd.im/node/1104
http://issues.apache.org/bugzilla/show_bug.cgi?id=37770
but I do not now if it is exactly my problem...

Jwchat try to reconnect... some times it works, but some times, after repeating 10 times the connexion, Jwchat connexion is closed.

any helps or advice is very wellcome

thanks in advance

luc

Alternate solution

You are using ejabberd from SVN, so you can use modules like mod_http_fileserver. With this, you don't need to setup a full webserver like Apache, and JWChat is a lot easier to get up and running.

However, there isn't yet a tutorial about this method. If you are interested in it, I could try to write it on the following days.

Hi Badlop and thanks a lot

Hi Badlop and thanks a lot for answering.

I hope to get exactly what you mean by "you don't need to setup a full webserver like Apache".

I need Apache of course for my web site, but the thing I have done in Apache dealing with ejabberd is only 2 lines to configure http_proxy and rewriting...
I do not know yet if I did something wrong or if there is a problem between http_bing module and my Apache2 release...

Nevertheless, you says that I can make Jwchat talk to ejabberd without http_bind ? I thought that "http_bind" was the first, new and unique solution to bind Jwchat with ejabberd...
If not, yes, I will be very interesseted to understand how to use "mod_http_fileserver" if you think that it is a efficient that "http_bind".

Here is my jabber if you are ok to share some informations with me : luc at jabber dot fr

thanks a lot in advance !!

luc

mod_http_fileserver can replace Apache

alook wrote:

Nevertheless, you says that I can make Jwchat talk to ejabberd without http_bind ? I thought that "http_bind" was the first, new and unique solution to bind Jwchat with ejabberd...
If not, yes, I will be very interesseted to understand how to use "mod_http_fileserver" if you think that it is a efficient that "http_bind".

You misunderstood my statement. http-bind is the way to connect a web server and the Jabber server. I said you don't need to setup a full web server like Apache, because mod_http_fileserver is exactly that: a minimal web file server.

Some people may run ejabberd alone on a machine. In such case, there's no need to setup a web server just for JWChat, thanks to the wonderful mod_http_fileserver.

In your case, you can simply use Apache. Obviously, you have more control using Apache, because mod_http_fileserver is quite limited, and will require yet another listening port on your machine (different than the already-in-use 80).

ok badlop, thanks for

ok badlop,
thanks for explanation, and sorry for that.

Then , I still have this problem.
I am alone in this use ? Does anyone obtain this proxy problem ?

thanks all for your help

luc

mod_http_fileserver

luc,

Is there mod_http_fileserver in some binary form.
I just born for Erlang and it will take me a wile until i will compile my first hello mod.

I am not planning to use cgi, jsp, ejb, asp... all i need is the real-time communication.
So, it would be perfect for me to keep 80 port on ejabberd.

I am using currently the whole flavor if IIS <-> Apache -> Tomcat and i think i don't need all of this.

juan

Ejabberd + JWChat+ mod_http_fileserver

Badlop,

It would be great helpful If you could write-up a step-by-step instructions on setting up the ejabberd + jwchat + mod_http_fileserver and share the experience on load metrics in term of large demanding chat system such as 100,000 chats per day and any other known issues going with this mechanism etc.,.

Thanks in advance
GP

See tutorial. Share your experience.

GP wrote:

It would be great helpful If you could write-up a step-by-step instructions on setting up the ejabberd + jwchat + mod_http_fileserver

Done: http://www.ejabberd.im/jwchat-localserver

GP wrote:

and share the experience on load metrics in term of large demanding chat system such as 100,000 chats per day and any other known issues going with this mechanism etc.,.

I didn't setup a large server like that. But you will do. Remember to share your experience ;)

set apache proxy timeout greater than http-bind timeout

All you need to do is set the apache proxy timeout to be greater than the http-bind timeout.

e.g.

RewriteRule http-bind/ balancer://http-bind [P]
<Proxy balancer://http-bind>
    BalancerMember http://__CHAT_SERVER_1__:5280/http-bind/ timeout=3000
    BalancerMember http://__CHAT_SERVER_2__:5280/http-bind/ timeout=3000
</Proxy>
Syndicate content