From ee0748715af564dc88525f8d2bd016c7a4784428 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Fri, 23 Nov 2018 21:38:04 +0100 Subject: [PATCH] Allow the HTTP Connection header to contain more for websockets Firefox is hell-bent on sending "keep-alive, Upgrade", which did not match ^Upgrade$.... Let's accept either. 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 8c4b47552d..9cf062b245 100644 --- a/roles/httpd/reverseproxy/templates/reversepassproxy.conf +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.conf @@ -34,7 +34,7 @@ SSLProxyEngine On RewriteEngine on RewriteCond %{HTTP:Upgrade} ^WebSocket$ [NC] -RewriteCond %{HTTP:Connection} ^Upgrade$ [NC] +RewriteCond %{HTTP:Connection} Upgrade [NC] RewriteRule .* "balancer://{{ balancer_name }}-websocket%{REQUEST_URI}" [P]