diff --git a/templates/etherpadlite.vhost.erb b/templates/etherpadlite.vhost.erb index e6711bb..c0b1888 100644 --- a/templates/etherpadlite.vhost.erb +++ b/templates/etherpadlite.vhost.erb @@ -66,6 +66,14 @@ RewriteCond %{REQUEST_URI} !/robots.txt RewriteRule ^/+(.+)$ https://<%= scope.lookupvar("etherpad_lite::apache::vhost_name") %>/p/$1 [NC,L,R=301] + + RewriteCond %{REQUEST_URI} ^/socket.io [NC] + RewriteCond %{QUERY_STRING} transport=websocket [NC] + RewriteRule /(.*) ws://localhost:9001/$1 [P,L] + ProxyPass /socket.io http://localhost:9001 + ProxyPassReverse /socket.io http://localhost:9001 + + RewriteRule ^/(.*)$ http://localhost:9001/$1 [P] ProxyPassReverse / http://localhost:9001/