Make node.js app work on ubuntu server -


i've created simple node application, , works on local environment.

the app listening port 8000 like:

var app = express(); // ... codes in between ... app.listen(8000); 

and on local environment can access node app like:

http://localhost:8000 

however, when i'm trying make work on linode server (ubuntu 10.04), can't access node app with:

http://mydomain.com:8000 

i'm sure have node_modules in place, because when do

node app.js 

it returns no error message , looks it's running.

i'm thinking maybe it's because have apache2 setup http://mydomain.com, , should kind of proxy setup, or issue don't know @ all. clueless , can't find related documents on google... know there must lot of things don't understand in between... please me understand how deploy node.js app server. thank much

it sounds may firewall issue.

did ever follow linode guide on creating firewall?
if so, you'll need explicitly allow port 8000:

-a input -p tcp --dport 8000 -j accept 

Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -