From 912d723281ebe01c28726c57467f18c273def441 Mon Sep 17 00:00:00 2001 From: Daniel Mendizabal Date: Sun, 25 Feb 2024 07:31:01 +1100 Subject: [PATCH] Update reverse-proxy.md - Apache (#7386) Update reverse-proxy.md Update to the Apache implementation --- docs/docs/administration/reverse-proxy.md | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/docs/docs/administration/reverse-proxy.md b/docs/docs/administration/reverse-proxy.md index 66f4d7b9f2..24919347f0 100644 --- a/docs/docs/administration/reverse-proxy.md +++ b/docs/docs/administration/reverse-proxy.md @@ -44,22 +44,13 @@ Below is an example config for Apache2 site configuration. ``` - ServerName + ServerName + ProxyRequests Off + ProxyPass / http://127.0.0.1:2283/ timeout=600 upgrade=websocket + ProxyPassReverse / http://127.0.0.1:2283/ + ProxyPreserveHost On - ProxyRequests off - ProxyVia on - - RewriteEngine On - RewriteCond %{REQUEST_URI} ^/api/socket.io [NC] - RewriteCond %{QUERY_STRING} transport=websocket [NC] - RewriteRule /(.*) ws://localhost:2283/$1 [P,L] - - ProxyPass /api/socket.io ws://localhost:2283/api/socket.io - ProxyPassReverse /api/socket.io ws://localhost:2283/api/socket.io - - - ProxyPass http://localhost:2283/ - ProxyPassReverse http://localhost:2283/ - ``` + +**timeout:** is measured in seconds, and it is particularly useful when long operations are triggered (i.e. Repair), so the server doesn't return an error.