From b70d43904da0c3a71491f0cc116645c3b92133b0 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Fri, 29 Mar 2019 11:39:29 +0100 Subject: [PATCH] Fix broken websocket proxying by double slash in request_uri matching Signed-off-by: Patrick Uiterwijk --- roles/httpd/reverseproxy/templates/reversepassproxy.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.conf index 1e4afe0d50..7f8d699511 100644 --- a/roles/httpd/reverseproxy/templates/reversepassproxy.conf +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.conf @@ -47,7 +47,7 @@ SSLProxyEngine On RewriteEngine on RewriteCond %{HTTP:Upgrade} ^WebSocket$ [NC] RewriteCond %{HTTP:Connection} Upgrade [NC] -{% if remotepath is defined %} +{% if remotepath is defined and remotepath != "/" %} RewriteCond %{REQUEST_URI} ^{{ remotepath }}/(.)* {% endif %} RewriteRule .* "balancer://{{ balancer_name }}-websocket%{REQUEST_URI}" [P]