Open fire http-bind Problems

3,720 views
Skip to first unread message

sathi

unread,
Oct 11, 2010, 8:58:04 AM10/11/10
to Strophe
Hi All,

I am very new to XMPP. I am implementing gtalk client using openfire
and strophe. I have installed Openfire 3.6.4, Apache server in
windows xp. I am not able to create a http-bind like, http://localhost:7070/http-bind

Karan Ahuja

unread,
Oct 11, 2010, 10:40:57 AM10/11/10
to str...@googlegroups.com
you will have to set this in your httpd.conf

<Proxy http://localhost/httpbind>
Order allow,deny
Allow from all
</Proxy>
ProxyPass /httpbind http://localhost:7070/http-bind/
ProxyPassReverse /httpbind http://localhost:7070/http-bind/
</VirtualHost>

in strophe - make a connection to - http://localhost/httpbind 
it will map this to  - http://localhost:7070/http-bind/

make sure open fire runs http bind / bosh on port 7070

Good luck

Thanks and regards ,

Karan Ahuja



--
You received this message because you are subscribed to the Google Groups "Strophe" group.
To post to this group, send email to str...@googlegroups.com.
To unsubscribe from this group, send email to strophe+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/strophe?hl=en.


Karan Ahuja

unread,
Oct 11, 2010, 10:41:57 AM10/11/10
to str...@googlegroups.com
the earlier code to go in httpd conf will be as below -
<VirtualHost 127.0.0.1>
   DocumentRoot "C:\code\wamp\www"
   ServerName localhost


<Proxy http://localhost/httpbind>
Order allow,deny
Allow from all
</Proxy>
ProxyPass /httpbind http://localhost:7070/http-bind/
ProxyPassReverse /httpbind http://localhost:7070/http-bind/
</VirtualHost>

wesley

unread,
Oct 7, 2013, 4:42:52 PM10/7/13
to str...@googlegroups.com
I've been looking all over the internet to use this but then for my remote server, no luck though...

I have a remote server (centos) with openfire installed on it. I'm busy creating a web chat client but I first need the http-binding to work. I am also getting 

HTTP ERROR 404

Problem accessing /http-binding. Reason:

    Not Found

The html/javascript files are located on the same server in a folder /var/www/chat. My httpd.conf file looks like this (with the xx.xx.xx.xx standing for my remote servers ip address):

VirtualHost *:80>
    DocumentRoot /var/www/chat
    ServerName xx.xx.xx.xx

Order allow,deny
Allow from all
</Proxy>
ProxyPass /httpbind http://xx.xx.xx.xx:7070/http-bind/
ProxyPassReverse /httpbind http://xx.xx.xx.xx:7070/http-bind/
</VirtualHost>

Who can help???

Khubaib Shabbir

unread,
Oct 12, 2013, 8:53:11 AM10/12/13
to str...@googlegroups.com
Hi,

I believe what the following shows is not an incorrect implementation. Infact, what I get from here is that the http-bind is working okay...

Not sure if you still require help with that... Let me know if you do

wesley

unread,
Oct 12, 2013, 10:44:05 AM10/12/13
to str...@googlegroups.com
Thats 400 what it needs to show right? Not 404?

Khubaib Shabbir

unread,
Oct 12, 2013, 12:21:01 PM10/12/13
to str...@googlegroups.com
Wesley,

I am sorry for being vague on that and causing confusion!

It is supposed to show you:

Openfire HTTP Binding Service

when you visit 'localhost:7070' only and that denotes the HTTP Binding Service is running fine on the server.

I believe that it says the following

HTTP ERROR: 404

Problem accessing /http-bind/. Reason:

    Not Found


Powered by Jetty://

on visiting localhost:7070/http-bind/ because this link refers to a http-binding service at the server and the request is from your browser as a http request. Now, there is nothing to return as a page to you, as the browser is not a http-bind supporting client directly, i.e. without the use of Strophe or any other client BOSH implementation.

The same address will not result in an error and will enable successful XMPP communications, if called from for example within JavaScript using Strophe, as then Strophe will be doing the http-binding client side and because this will not be in use for serving http page, but infact for Bidirectional Streams over Synchronous HTTP for serving  XML.

Hope this clarifies. You can always get in touch if there's anything...


On Sat, Oct 12, 2013 at 7:44 PM, wesley <wesley...@gmail.com> wrote:
Thats 400 what it needs to show right? Not 404?

--
You received this message because you are subscribed to a topic in the Google Groups "Strophe" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/strophe/fyArrwXelCw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to strophe+u...@googlegroups.com.

To post to this group, send email to str...@googlegroups.com.



--
Khubaib Shabbir
Virtual Live Technologies
Reply all
Reply to author
Forward
0 new messages