Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about BOSH server #28

Closed
jano305 opened this issue May 10, 2014 · 1 comment
Closed

Question about BOSH server #28

jano305 opened this issue May 10, 2014 · 1 comment

Comments

@jano305
Copy link

jano305 commented May 10, 2014

I have problem with connecting to BOSH server (no matter how i try OJSXC only said ... BOSH server NOT reachable ... and so on).

-I am running Windows Server 2008R2.
-Owncloud is on https://owncloud.domain.sk
-I have other page on http://domain.sk (so moving Owncloud to this domain is not possible)
-On the same server is installed Openfire with enabled BOSH scripting on port 7070 (7443 fo SSL)
-I already set reverse proxy and answer to http://fillo.sk/http-bind/?%3Cbody%20rid=%221%22/%3E is BOSH("<body xmlns="http://jabber.org/protocol/httpbind\" xmlns:stream="http://etherx.jabber.org/streams\" from="domain.sk" and so on ... (so in my opinion BOSH server is running well)
-For some reason (i really do not know) i can not set reverse proxy to work on https://owncloud.domain.sk/http-bind/ or http://owncloud.domain.sk/http-bind/ (if someone know how to do that on Windows Server i will be happy if he will told me).

So my questions are:
-It is possible to run OJSXC with BOSH server different from Owncloud domain? If yes how can i do that?
-What field needs to be filled in OJSXC configuration (and how)?

Example of configuration:
BOSH url - /http-bind/
XMPP domain - domain.sk
XMPP resource - owncloud
TURN url - i do not know a thing about TURN server and i do not know if this field need to be filled
TURN username - same as TURN url
TURN credential - same as TURN url
TURN secret - same as TURN url
TURN ttl - same as TURN url

This app into Owncloud looks really nice and i really want to make it work. Thanks everyone for helping. And sorry for my English (when i was writing this i was a little bit upset because i can not make it work only by my self :-) )

@sualko
Copy link
Member

sualko commented May 12, 2014

If I got it right, your bosh server is reachable via domain.sk/http-bind/ and your owncloud server is running under owncloud.domain.sk.

Now you are running into trouble because of the same-origin-policy. The only way to get it work with openfire is the proxy-method. So you have to make your bosh server responding under owncloud.domain.sk/http-bind/. Maybe the following tutorial can help you:

http://www.iis.net/learn/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing

Sorry, I don't have any experiences with IIS.

@sualko sualko closed this as completed May 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants