Last active
August 29, 2015 14:03
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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