Nginx having multiple server blocks with sub domain but socket io only hit by the root / and not each differently #4523
Unanswered
fares-coder
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
server {
server_name a.example.com
location /{
express app 1 with socket io in it
}
}
server {
server_name b.example.com
location /{
express app 2 with socket io in it
}
}
Nginx only hitting /socket.io/socket.io.js not a.example.com ---> /socket.io/socket.io.js and b.example.com ----->/socket.io/socket.io.js separately
Even though from client side the subdomains are mentioned
eg: io("a.example.com") and io("b.example.com")
Beta Was this translation helpful? Give feedback.
All reactions