Skip to content

Instantly share code, notes, and snippets.

@PIE-yt
Last active March 12, 2022 18:54
Show Gist options
  • Save PIE-yt/29e7116588379032427f5bd446b2cac4 to your computer and use it in GitHub Desktop.
Save PIE-yt/29e7116588379032427f5bd446b2cac4 to your computer and use it in GitHub Desktop.
MeTube Apache reverse proxy configuration.
#For putting in your Apache sites site.conf
#Serves MeTube under a /metube/ subdir (http://yourdomain.com/metube/)
<Location /metube/>
ProxyPass http://localhost:8081/ retry=0 timeout=30
ProxyPassReverse http://localhost:8081/
</Location>
<Location /metube/socket.io>
RewriteEngine On
RewriteCond %{QUERY_STRING} transport=websocket [NC]
RewriteRule /(.*) ws://localhost:8081/socket.io/$1 [P,L]
ProxyPass http://localhost:8081/socket.io retry=0 timeout=30
ProxyPassReverse http://localhost:8081/socket.io
</Location>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment