Skip to content

Instantly share code, notes, and snippets.

@zauberstuhl
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zauberstuhl/2d09330961614b12b642 to your computer and use it in GitHub Desktop.
Save zauberstuhl/2d09330961614b12b642 to your computer and use it in GitHub Desktop.
Diaspora: Configure Apache for proxying http-bind to avoid mixed contant problems (XMPP)
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/http-bind
RewriteRule ^/(http\-bind.*)$ balancer://chat%{REQUEST_URI} [P,QSA,L]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://diaspora%{REQUEST_URI} [P,QSA,L]
<Proxy balancer://diaspora>
BalancerMember http://127.0.0.1:3000
</Proxy>
<Proxy balancer://chat>
BalancerMember http://0.0.0.0:5280
</Proxy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment