diff --git a/manifests/apache.pp b/manifests/apache.pp index 9ff3b35..cc2dc45 100644 --- a/manifests/apache.pp +++ b/manifests/apache.pp @@ -58,6 +58,10 @@ class etherpad_lite::apache ( notify => Service['httpd'], require => File['/etc/apache2/conf-available/connection-tuning'], } + + httpd_mod { 'proxy_wstunnel': + ensure => present, + } } file { $docroot: diff --git a/templates/etherpadlite.vhost.erb b/templates/etherpadlite.vhost.erb index fb92b3a..754a4ec 100644 --- a/templates/etherpadlite.vhost.erb +++ b/templates/etherpadlite.vhost.erb @@ -74,8 +74,8 @@ 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 retry=0 - ProxyPassReverse /socket.io http://localhost:9001 + ProxyPass /socket.io http://localhost:9001/socket.io retry=0 + ProxyPassReverse /socket.io http://localhost:9001/socket.io ProxyPass / http://localhost:9001/ retry=0