From b2698dbee5a051dc17d80a453997bd904d84fcb6 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Mon, 11 Dec 2023 10:25:44 +0800 Subject: [PATCH] Add `ProxyPreserveHost on` --- Reverse-Proxy.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Reverse-Proxy.md b/Reverse-Proxy.md index 4983101..09422be 100644 --- a/Reverse-Proxy.md +++ b/Reverse-Proxy.md @@ -97,7 +97,7 @@ With SSL: SSLCertificateKeyFile /path/to/ssl/key/key # Protocol 'h2' is only supported on Apache 2.4.17 or newer. Protocols h2 http/1.1 - + ProxyPreserveHost on ProxyPass / http://localhost:3001/ RewriteEngine on RewriteCond %{HTTP:Upgrade} =websocket @@ -111,7 +111,7 @@ Without SSL: ```apache ServerName sub.domain.com - + ProxyPreserveHost on ProxyPass / http://localhost:3001/ RewriteEngine on RewriteCond %{HTTP:Upgrade} websocket [NC]