Socket.io failing when publishing to Plesk hosting

Ok I fixed it and putting here in case anyone has the same problem.

This is a NodeJS app I’m hosting on Plesk. In order for sockets to work, you have to go to Apache & nginx Settings for the site and In the nginx settings section, clear the Proxy mode checkbox.

As soon as I disabled that, the site loaded properly.

1 Like