Solved - accessing river5 from port 80 on Dreamhost VPS

37 views
Skip to first unread message

Hanan Cohen

unread,
Jun 18, 2019, 6:41:21 AM6/18/19
to river5
Hi,

New here.

Wanted to ask a question, someone else helped me so I am posting the solution here, for others to see. This is the first time I am working with node.js so I don't know how to read and Google error messages.

When I have changed config.json to
    "httpPort": 80,

and restarted, I got some error lines that began like this.

River51 v0.5.9 running on port 80.

events.js:174
      throw er; // Unhandled 'error' event
      ^

Error: listen EACCES: permission denied 0.0.0.0:80
...
...


It turns out that my VPS doesn't allow an app that has no root permissions to use port 80.

I discovered that my hosting allows to proxy a port - between 8000 and 65535.


I have changed config.json to

    "httpPort": 8080,

and set up a proxy and it worked.

HTH

Hanan Cohen
Reply all
Reply to author
Forward
0 new messages