Merge pull request #12 from peeterss/patch-1

Update Reverse-Proxy.md
Louis Lam
2022-09-07 19:03:33 +08:00
committed by GitHub

@@ -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>
``` ```