Edi Duluman
Basic Pleskian
Hello!
Few weeks ago, on the Plesk Facebook Page, there was a tutorial on how to install and run nodeJS applications.
I running applications, logging and debugging, everything working as expected.
Only issue now is that I have apps which of course, require socket.io, therefore I have set it up, ran it and works smoothly.
Problem is that, when I try connecting to the server, I get an
Error during WebSocket handshake: Unexpected response code: 400
You can test it out here: http://frisk.duluman.ro/a.html
Same code, connecting to the same node app, but another server, pure nodejs / socket.io install with no Plesk on it: http://frisk.duluman.ro/b.html
I found something regarding the Nginx Proxy here: https://github.com/socketio/socket.io/issues/1942#issuecomment-82352072
But I can't apply those settings in Apache & Nginx settings in Plesk due the duplicate location / test fail.
This is the app.js file, dead simple.
Anyone having any idea ?
Thanks in advance!
Few weeks ago, on the Plesk Facebook Page, there was a tutorial on how to install and run nodeJS applications.
I running applications, logging and debugging, everything working as expected.
Only issue now is that I have apps which of course, require socket.io, therefore I have set it up, ran it and works smoothly.
Problem is that, when I try connecting to the server, I get an
Error during WebSocket handshake: Unexpected response code: 400
You can test it out here: http://frisk.duluman.ro/a.html
Same code, connecting to the same node app, but another server, pure nodejs / socket.io install with no Plesk on it: http://frisk.duluman.ro/b.html
I found something regarding the Nginx Proxy here: https://github.com/socketio/socket.io/issues/1942#issuecomment-82352072
But I can't apply those settings in Apache & Nginx settings in Plesk due the duplicate location / test fail.
This is the app.js file, dead simple.
Anyone having any idea ?
Thanks in advance!