Report this

What is the reason for this report?

How to set up nodejs websocket server alongside "ubuntu wordpress" install

Posted on November 8, 2022

This will be the 3rd time I’ve typed this as DO just throws it in the garbage after I submit.

I have a droplet that was installed with the wordpress image. I have installed nodejs on the droplet and now I’m running an nodejs websocket server from /var/www/server/. I am hosting the client at /var/www/html/client/ but it will not connect to the websocket server.

After 10+ hours of searching, I think I’ve narrowed it down to something to do with the apache http-proxy but every configuration I’ve tried in the /sites-available/000-default.conf file have failed.

What am I doing wrong? Can somone point me in the correct direction? Thank you.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.