Fix broken websocket proxying by double slash in request_uri matching
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
bed6d7aadc
commit
b70d43904d
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ SSLProxyEngine On
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
RewriteCond %{HTTP:Upgrade} ^WebSocket$ [NC]
|
RewriteCond %{HTTP:Upgrade} ^WebSocket$ [NC]
|
||||||
RewriteCond %{HTTP:Connection} Upgrade [NC]
|
RewriteCond %{HTTP:Connection} Upgrade [NC]
|
||||||
{% if remotepath is defined %}
|
{% if remotepath is defined and remotepath != "/" %}
|
||||||
RewriteCond %{REQUEST_URI} ^{{ remotepath }}/(.)*
|
RewriteCond %{REQUEST_URI} ^{{ remotepath }}/(.)*
|
||||||
{% endif %}
|
{% endif %}
|
||||||
RewriteRule .* "balancer://{{ balancer_name }}-websocket%{REQUEST_URI}" [P]
|
RewriteRule .* "balancer://{{ balancer_name }}-websocket%{REQUEST_URI}" [P]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue