Add support for Apache mod_proxy_wstunnel
This change allows Apache servers with mod_proxy_wstunnel enabled to pass thru Websocket connections to Etherpad, providing the browser supports that. Change-Id: I4f595f456e0d280c6f05958a36552213dd6cf1e2
This commit is contained in:
parent
1fcff4d473
commit
9896474346
@ -66,6 +66,14 @@
|
|||||||
RewriteCond %{REQUEST_URI} !/robots.txt
|
RewriteCond %{REQUEST_URI} !/robots.txt
|
||||||
RewriteRule ^/+(.+)$ https://<%= scope.lookupvar("etherpad_lite::apache::vhost_name") %>/p/$1 [NC,L,R=301]
|
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]
|
RewriteRule ^/(.*)$ http://localhost:9001/$1 [P]
|
||||||
ProxyPassReverse / http://localhost:9001/
|
ProxyPassReverse / http://localhost:9001/
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user