c9 / core

Cloud9 Core - Part of the Cloud9 SDK for Plugin Development https://c9.github.io/core/ https://c9.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Start c9 on port 80

abalter opened this issue · comments

I tried the obvious:

$ node /var/www/html/c9sdk/server.js -w /var/www/html --port 80 --listen localhost
Starting standalone
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: listen EACCES 127.0.0.1:80
    at Object._errnoException (util.js:1022:11)
    at _exceptionWithHostPort (util.js:1044:20)
    at Server.setupListenHandle [as _listen2] (net.js:1350:19)
    at listenInCluster (net.js:1408:12)
    at GetAddrInfoReqWrap.doListen [as callback] (net.js:1517:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:97:10)

I'd like to be able to reach c9 at localhost.

Only the root user is allowed to run services on ports below 1024.

You could setup nginx with a proxy_pass http://127.0.0.1:YOURPORT entry in the / location.
Please take a look at authentication as well: Using -a someuser:somepassword for the c9-startup is a good start.