Update Reverse-Proxy.md

hi,

tnx for this great tool. very useful!
above fixed websocket connection for old Apache.

( https://stackoverflow.com/questions/53939609/apache-websocket-connectionupgrade-replaced-by-keep-alive  helped. )
seppe peeters 2022-08-22 16:31:27 +02:00 committed by GitHub
parent f38f42bdbb
commit fc5b5f85cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

@ -69,9 +69,10 @@ With SSL:
ProxyPass / http://localhost:3001/ ProxyPass / http://localhost:3001/
RewriteEngine on RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC] RewriteCond %{HTTP:Upgrade} =websocket
RewriteCond %{HTTP:Connection} upgrade [NC] RewriteRule /(.*) ws://localhost:3001/$1 [P,L]
RewriteRule ^/?(.*) "ws://localhost:3001/$1" [P,L] RewriteCond %{HTTP:Upgrade} !=websocket
RewriteRule /(.*) http://localhost:3001/$1 [P,L]
</VirtualHost> </VirtualHost>
``` ```