Answer the question
In order to leave comments, you need to log in
What's wrong with node.js server?
Good afternoon, I'm setting up a server on an Ubuntu 14.04 VM on Azure, and when I run the server.js file, I get an error:
Although when I run it on localhost at home. the system is fine.
Maybe it's in the nginx config?
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://localhost:8080;
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Answer the question
In order to leave comments, you need to log in
This means that some program has already taken the port you are trying to connect to. Either find and remove this program, or change the port on which server.js is running
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question