Merge "Add support for Apache mod_proxy_wstunnel"

This commit is contained in:
Jenkins 2015-04-16 14:43:05 +00:00 committed by Gerrit Code Review
commit 368bc81802
1 changed files with 8 additions and 0 deletions

View File

@ -70,6 +70,14 @@
RewriteCond %{REQUEST_URI} !/robots.txt
RewriteRule ^/+(.+)$ https://<%= scope.lookupvar("etherpad_lite::apache::vhost_name") %>/p/$1 [NC,L,R=301]
<IfModule mod_proxy_wstunnel.c>
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
</IfModule>
RewriteRule ^/(.*)$ http://localhost:9001/$1 [P]
ProxyPassReverse / http://localhost:9001/
</IfModule>