set proxy in apache for ejabberd XMPP chat

I want to setup a proxy settings in Apache to use Facebook XMPP Chat

So far I have setup ejabber server and I am able to access xmpp service using

http://mydomain.com:5280/xmpp-http-bind

I am able to create Jabber Account too.

Now as I want to integrate Facebook XMPP chat , I want my server to sit in between client and chat.facebook.com because I want to implement Facebook chat and custom chat too.

So I have read http://blog.wolfspelz.de/2010/09/website-chat-made-easy-with-xmpp-and.html article and come to know that I need to serve BOSH Service as a proxy in apache to access Facebook Chat service.

So I don't know how to set up a proxy in a apache httpd.conf as I have tried following

Order deny,allow
Allow from all

ProxyPass /xmpp-httpbind http://www.mydomain.com:5280/xmpp-http-bind
ProxyPassReverse /xmpp-httpbind http://www.mydomain.com:5280/xmpp-http-bind

But whenever I request http://www.mydomain.com:5280/xmpp-http-bind from strophe.js
I am getting following response from server

    <body type='terminate' condition='internal-server-error' xmlns='http://jabber.org/protocol/httpbind'>
       BOSH module not started
    </body>

and server log says following

E(<0.567.0>:ejabberd_http_bind:1239) : You are trying to use BOSH
(HTTP Bind) in host "chat.facebook.com", but the module mod_http_bind
is not started in that host. Configure your BOSH client to connect to
the correct host, or add your desired host to the configuration, or
check your 'modules' section in your ejabberd configuration file.

Can anyone please help me to resolve the issue

Apparently you send the HTTP

Apparently you send the HTTP request to ejabberd, but indicating a host/domain "chat.facebook.com".

Syndicate content