Skip to content

Instantly share code, notes, and snippets.

@michimau
Last active July 14, 2019 12:11
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 michimau/85f354bb4e55e086fa0df8a33a48ec54 to your computer and use it in GitHub Desktop.
Save michimau/85f354bb4e55e086fa0df8a33a48ec54 to your computer and use it in GitHub Desktop.
pydio_apache
<VirtualHost *:80>
ServerAdmin mypydio.com
AllowEncodedSlashes On
RewriteEngine On
ProxyPassMatch "/ws/(.*)" ws://cells:8080/ws/$1 nocanon
ProxyPass / http://cells:8080/ nocanon
ProxyPassReverse / http://cells:8080/ nocanon
# Proxy WebSocket
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) wss://cells:8080/$1 [P,L]
ErrorLog ${APACHE_LOG_DIR}/error-80.log
CustomLog ${APACHE_LOG_DIR}/access-80.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment