From ca5e97ef5bfe26453a5d7c5b89613f89537694ab Mon Sep 17 00:00:00 2001 From: szaimen Date: Sat, 8 Oct 2022 20:44:15 +0200 Subject: [PATCH] rework the apache reverse proxy documentation Signed-off-by: szaimen --- reverse-proxy.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reverse-proxy.md b/reverse-proxy.md index c30bc0f3..ffb3d782 100644 --- a/reverse-proxy.md +++ b/reverse-proxy.md @@ -41,14 +41,14 @@ Add this as a new Apache site config: ServerName - # Reverse proxy - RewriteEngine On + # Reverse proxy based on https://httpd.apache.org/docs/current/mod/mod_proxy_wstunnel.html + RewriteEngine on ProxyPreserveHost On + AllowEncodedSlashes NoDecode + ProxyPass / http://localhost:11000/ RewriteCond %{HTTP:Upgrade} websocket [NC] RewriteCond %{HTTP:Connection} upgrade [NC] - RewriteRule ^/(.*) "ws://localhost:11000/$1" [P,L] - ProxyPass / http://localhost:11000/ - ProxyPassReverse / http://localhost:11000/ + RewriteRule ^/?(.*) "ws://localhost:11000/$1" [P,QSA,B=?:;] # Enable h2, h2c and http1.1 Protocols h2 h2c http/1.1