From 8229c9c51d3aff15b1f718c94141c21ed67fadd9 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Thu, 12 May 2022 12:44:49 +1000 Subject: [PATCH] Add websockets details to apache --- Reverse-proxy.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Reverse-proxy.md b/Reverse-proxy.md index 085ac6e..87fa011 100644 --- a/Reverse-proxy.md +++ b/Reverse-proxy.md @@ -102,6 +102,12 @@ ProxyPass "/stash" "http://127.0.0.1:9999" ProxyPassReverse "/stash" "http://127.0.0.1:9999" RequestHeader setIfEmpty X-Forwarded-Prefix "/stash" ProxyPreserveHost on + +# to enable websockets +RewriteEngine on +RewriteCond %{HTTP:Upgrade} websocket [NC] +RewriteCond %{HTTP:Connection} upgrade [NC] +RewriteRule ^/?(.*) "ws://127.0.0.1:9999/$1" [P,L] ```