question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Apache ProxyPass for BOSH url

See original GitHub issue

Hello,

I apoligize in advance as I see there are many issues already posted with my same content.

I have followed your post regard proper apache setup to remove the port from the BOSH URL. Though it appears to take a bit longer before displaying the error, the same error still shows:

BOSH server NOT reachable or misconfigured.

Cross domain request was not possible. Either your BOSH server does not send any Access-Control-Allow-Origin header or the content-security-policy (CSP) blocks your request. Starting from Owncloud 9.0 your CSP will be updated in any app which uses the appframework (e.g. files) after you save these settings and reload.The savest way is still to use Apache ProxyRequest or Nginx proxy_pass.

Reading thru your other posts, this my CORS headers are messed up. Below is my virtual host configuration with headers to try to mitigate the CORS issues. I am hoping that you could help point me in the right direction!

`VirtualHost *:80 ServerAdmin webmaster@localhost ServerName im.greysky.me ProxyRequests off

ProxyPass /http-bind/ http://localhost:5280/http-bind/ ProxyPassReverse /http_bind/ http://localhost:5280/http-bind/

<Location /http-bind> Order allow,deny Allow from all </Location> Header always set Access-Control-Allow-Origin: “*” Header always set Access-Control-Max-Age “1000” Header always set Access-Control-Allow-Headers “X-Requested-With, Content-Type, Origin, Authorization, Accept, Client-Security-Token, Accept-Encoding” Header always set Access-Control-Allow-Methods “POST, GET, OPTIONS, DELETE, PUT” /VirtualHost`

Thank you!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

0reactions
sualkocommented, Feb 23, 2018

Looks awesome. Thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

404 not-found after setting proxy in apache for BOSH
To be able to use ProxyPass and ProxyPassReverse , you need to enable Apache mod_proxy first. host# a2enable mod_proxy host# ...
Read more >
Setting up a BOSH server - Prosody IM
This page acts as a guide to setting up Prosody as a BOSH server for the first ... If you want to customize...
Read more >
Openfire 4.5 (http-bind) <-> ojsxc (http-bind)
Hello I set up openfire 4.5 on the same host nextcloud 17 is running. To do this I followed video on youtube. Under...
Read more >
mod_proxy - Apache HTTP Server Version 2.4
mod_proxy and related modules implement a proxy/gateway for Apache HTTP Server, supporting a number of popular protocols as well as several different load ......
Read more >
AJAX XMPP Library Deployment Guide - Cisco DevNet
You need to create a reverse proxy URL on your web server to point to the BOSH URL on the BOSH server e.g.....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found