Skip to content
Discussion options

You must be logged in to vote

I was able to make it work.
The main issue was the order of my apache rules. The first matching rule gets applied, which caused my issues.

Here are my setting if anyone faces a similar issue:

ProxyPreserveHost On
RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteCond %{REQUEST_URI} "/abc/socket.io"
RewriteRule ^/?(.*) "ws://localhost:3000/$1" [P,L]
        
ProxyPass "/abc/socket.io" ws://localhost:3000/$1
ProxyPassReverse "/abc/socket.io" ws://localhost:3000/$1
        
ProxyPass /abc http://localhost:3000/
ProxyPassReverse /abc http://localhost:3000/

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AndiLeni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant