From 111d1c9e6af21842ed2231c07a79faa2509bc2e4 Mon Sep 17 00:00:00 2001 From: Daniel Scharon Date: Sun, 24 Nov 2024 00:35:57 +0100 Subject: [PATCH] add reverse proxy config example for Apache >= 2.4.47 since Apache 2.4.47 the reverse proxying configuration for WebSocket connections has been extremely simplified and doesn't need mod_rewrite anymore, see https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#wsupgrade Signed-off-by: Daniel Scharon --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b3222e3..1cfbd57 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ docker build -t nextcloud-whiteboard-server -f Dockerfile . ### Reverse proxy -#### Apache +#### Apache < 2.4.47 ``` ProxyPass /whiteboard http://localhost:3002/ @@ -94,6 +94,12 @@ RewriteCond %{HTTP:Connection} upgrade [NC] RewriteRule ^/?whiteboard/(.*) "ws://localhost:3002/$1" [P,L] ``` +#### Apache >= 2.4.47 + +``` +ProxyPass /whiteboard http://localhost:3002/ upgrade=websocket +``` + #### Nginx ```