diff --git a/Proxy-examples.md b/Proxy-examples.md index 667e764..8894d86 100644 --- a/Proxy-examples.md +++ b/Proxy-examples.md @@ -512,16 +512,10 @@ On some OS's you can use a2enmod, for example with: `a2enmod proxy_wstunnel` and CustomLog \${APACHE_LOG_DIR}/access.log combined #adjust here if necessary - RewriteEngine On - RewriteCond %{HTTP:Upgrade} =websocket [NC] - RewriteRule /notifications/hub(.*) ws://:/$sublocation/notifications/hub/$1 [P,L] - RewriteRule /notifications/anonymous-hub(.*) ws://:/fjbitwarden/notifications/anonymous-hub/$1 [P,L] - ProxyPass http://:/$sublocation + ProxyPass http://:/$sublocation upgrade=websocket ProxyPreserveHost Off RequestHeader set X-Real-IP %{REMOTE_ADDR}s - RequestHeader setifempty Connection "Upgrade" - RequestHeader setifempty Upgrade "websocket" ```