-
I had a basic Node.js chat room built in Apache2, but I migrated everything over to Ngnix and I'm having problems trying to get the chat room working again. I am trying to get my chat app working as directory When I try loading the page, I am getting this error:
It seems like this must be a really simple fix, like maybe it should be connecting to " package.json:
Ngnix Config:
Client-side connection to IO - code in the webpage:
Server-side app.js setup:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
After banging my head against the wall and a little bit of trial/error luck, I got everything working by changing the client-side script to:
It seems that the "path" has to match the "path" set on the server-side app config. |
Beta Was this translation helpful? Give feedback.
-
I'm having this issue now for days and I cant seem to fix it by providing path in both client and server. |
Beta Was this translation helpful? Give feedback.
After banging my head against the wall and a little bit of trial/error luck, I got everything working by changing the client-side script to:
It seems that the "path" has to match the "path" set on the server-side app config.