From 61ccdba4e97fe96f24d4ee4752cd5dd8f20e6d46 Mon Sep 17 00:00:00 2001
From: Stefan Melmuk <509385+stefan0xC@users.noreply.github.com>
Date: Wed, 9 Jul 2025 18:58:47 +0200
Subject: [PATCH] merge both apache with subpath examples (> 2.4.47) as both
have been made more or less identical, also remove outdated information about
proxy_wstunnel_module
---
Proxy-examples.md | 41 ++++++++---------------------------------
1 file changed, 8 insertions(+), 33 deletions(-)
diff --git a/Proxy-examples.md b/Proxy-examples.md
index 271e757..1465dc8 100644
--- a/Proxy-examples.md
+++ b/Proxy-examples.md
@@ -468,7 +468,9 @@ server {
Apache (by fbartels)
-Remember to enable `mod_proxy_wstunnel` and `mod_proxy_http`, for example with: `a2enmod proxy_wstunnel` and `a2enmod proxy_http`.
+Remember to enable `mod_proxy_http`, for example with: `a2enmod proxy_http`.
+This requires Apache >= 2.4.47
+
```apache
SSLEngine on
@@ -494,7 +496,8 @@ Remember to enable `mod_proxy_wstunnel` and `mod_proxy_http`, for example with:
-Apache in a sub-location (by @agentdr8)
+Apache in a sub-location (by @agentdr8 and @NoseyNick)
+
Modify your docker start-up to include the sub-location.
```
@@ -502,19 +505,12 @@ Modify your docker start-up to include the sub-location.
DOMAIN=https://shared.example.tld/vault/
```
-Ensure you have the websocket proxy module loaded somewhere in your apache config.
-It can look something like:
-
-```
-LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so`
-```
-
-On some OS's you can use a2enmod, for example with: `a2enmod proxy_wstunnel` and `a2enmod proxy_http`.
+Remember to enable `mod_proxy_http`, for example with: `a2enmod proxy_http`. This requires Apache >= 2.4.47
```apache
SSLEngine on
- ServerName $hostname.$domainname
+ ServerName shared.example.tld
SSLCertificateFile ${SSLCERTIFICATE}
SSLCertificateKeyFile ${SSLKEY}
@@ -526,34 +522,13 @@ On some OS's you can use a2enmod, for example with: `a2enmod proxy_wstunnel` and
#adjust here if necessary
ProxyPass http://127.0.0.1:8000/vault/ upgrade=websocket
-
- ProxyPreserveHost Off
+ ProxyPreserveHost On
RequestHeader set X-Real-IP %{REMOTE_ADDR}s
```
-
-Apache 2.4.47 (or later) in a sub-location (by @NoseyNick)
-
-The regular `mod_proxy` now supports upgrading to websockets, with `upgrade=websocket`, no need for `mod_proxy_wstunnel`.
-
-Copy the instructions above, except use the much simpler...
-
-```apache
-
- [ blah blah ]
- #adjust here if necessary
- ProxyPass http://127.0.0.1:8000/vault/ upgrade=websocket
- ProxyPreserveHost On
- ProxyRequests Off # ... is the default, but as a safety-net
- RequestHeader set X-Real-IP %{REMOTE_ADDR}s
-
-
-```
-
-
Traefik v2 (docker-compose example by hwwilliams, gzfrozen)