I am new at XMPP, i want to develop an instant messaging application on XMPP. I installed openfire on ubuntu server and then i use Strophe library to create connection object. But when i put JID and password in my application it send request but doesnot receive any stanza and show "200 OK" status. I use apache2 server and also add new conf file, but atlast it won't work.
1 Answers
After 3 days of research, I found the error: We have to go to /etc/apache2/site-available/ and modify 000-default.conf file and add following line (without double quotes) inside its tag:
"ProxyPass /http-bind http://jabber.local:7070/http-bind/"
"ProxyPassReverse /http-bind http://jabber.local:7070/http-bind/"
(Note:use your domain name or ip address instead of jabber.local)
Then Edit you javascript file and Make user BOSH url : "ip/http-bind" where ip ip corresponds to corresponding ip address of your remote server.
My mistak was that instead of modifying 000-default.conf file, i create a new conf file including this tag, and this file was not considered by my apache server since how would it know about new file, such a silly mistake, but makes a lot trouble for me.