HTTP Binding - 502 Bad Gateway 503 Service Unavailable errors

Hi,

Im using the jQuery XMPP client https://github.com/maxpowel/jQuery-XMPP-plugin to connect to openfire chat server via HTTP proxy binding

How ever i’m frequently getting NetworkError messages while long polling the /http-bind URL

I get two types of error messages

  • 502 Bad Gateway
  • 503 Service Unavailable

Sample of 502 Bad Gateway

POST http://www.my-server.com/chat/

PPP \

RESPONSE from server is

502 Proxy Error

Proxy Error

The proxy server received an invalid

response from an upstream server.

The proxy server could not handle the request POST /chat/.

Reason: Error reading from remote server


Apache/2.2.15 (CentOS) Server at www.my-server.com Port 80

And for 503 Service Unavailable,

POST

RESPONSE

503 Service Temporarily Unavailable

Service Temporarily Unavailable

The server is temporarily unable to service your

request due to maintenance downtime or capacity

problems. Please try again later.


Apache/2.2.15 (CentOS) Server at www.my-server.com Port 80

Please advice

Hi, I have the same problem with Openfire, Apache 2.4.4 and Strophe.

The 502 Proxy error is received in Chrome 1 min after that the request is opened (each time).

502 Proxy Error

Proxy Error

The proxy server received an invalid

response from an upstream server.

The proxy server could not handle the request POST /http-bind.

Reason: Error reading from remote server

And then the 503 Error (Invalid SID).

What should I do to get it to work?

I changed the proxy timeout in the http.conf to 120 and now the connection is stable :

<Proxy http://localhost:7070/http-bind>

Order allow,deny

Allow from all

ProxyPass /http-bind http://localhost:7070/http-bind/ timeout=120

ProxyPassReverse /http-bind http://localhost:7070/http-bind/ timeout=120

I guess that the timeout period shall be greater on the Proxy than on Openfire, but I couldn’t find the timeout parameter(s) for /http-bind on openfire (http://community.igniterealtime.org/docs/DOC-1061). What are the timeout parameter(s) and what are the default values?