xmpp - Not getting response from openfire server through Strophe BOSH object -
i new @ xmpp, want develop instant messaging application on xmpp. installed openfire on ubuntu server , use strophe library create connection object. when put jid , password in application send request doesnot receive stanza , show "200 ok" status. use apache2 server , add new conf file, atlast won't work.
after 3 days of research, found error: have go /etc/apache2/site-available/ , modify 000-default.conf file , add following line (without double quotes) inside tag:
"proxypass /http-bind http://jabber.local:7070/http-bind/"
"proxypassreverse /http-bind http://jabber.local:7070/http-bind/"
(note:use domain name or ip address instead of jabber.local)
then edit javascript file , make user bosh url : "ip/http-bind" ip ip corresponds corresponding ip address of remote server.
my mistak instead of modifying 000-default.conf file, create new conf file including tag, , file not considered apache server since how know new file, such silly mistake, makes lot trouble me.
Comments
Post a Comment