Skip to content

Instantly share code, notes, and snippets.

@gabsoftware
Created August 29, 2016 13:29
Show Gist options
  • Save gabsoftware/48dfeb6a66f9eebfe64e50003b6f0de9 to your computer and use it in GitHub Desktop.
Save gabsoftware/48dfeb6a66f9eebfe64e50003b6f0de9 to your computer and use it in GitHub Desktop.
What I'm having in Apache config (working)
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>
diaspora.yml :
listen: '127.0.0.1:3000'
What I tried in Apache config (does not work)
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://diaspora%{REQUEST_URI} [P,QSA,L]
<Proxy balancer://diaspora>
BalancerMember unix://tmp/diaspora.sock
</Proxy>
diaspora.yml :
listen: 'unix:tmp/diaspora.sock'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment