From 33ec75c493118daffecd27856494ac00653f52cc Mon Sep 17 00:00:00 2001 From: Deez Date: Thu, 9 Nov 2023 16:22:13 -0800 Subject: [PATCH] Added Apache sub-dir updates for v1.29+ --- Proxy-examples.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Proxy-examples.md b/Proxy-examples.md index cf44c7c..e814107 100644 --- a/Proxy-examples.md +++ b/Proxy-examples.md @@ -568,7 +568,7 @@ Remember to enable `mod_proxy_wstunnel` and `mod_proxy_http`, for example with:
-Apache in a sub-location (by ss89)
+Apache in a sub-location v1.29.0+ (by @agentdr8)
Modify your docker start-up to include the sub-location. ``` @@ -601,11 +601,13 @@ On some OS's you can use a2enmod, for example with: `a2enmod proxy_wstunnel` and #adjust here if necessary RewriteEngine On RewriteCond %{HTTP:Upgrade} =websocket [NC] - RewriteRule /notifications/hub(.*) ws://:3012/$1 [P,L] - ProxyPass http://:80/$sublocation/ + RewriteRule /notifications/hub(.*) ws://:/$sublocation/notifications/hub/$1 [P,L] + ProxyPass http://:/$sublocation - ProxyPreserveHost On + ProxyPreserveHost Off RequestHeader set X-Real-IP %{REMOTE_ADDR}s + RequestHeader setifempty Connection "Upgrade" + RequestHeader setifempty Upgrade "websocket" ```