Answer the question
In order to leave comments, you need to log in
How to transfer a node.js web application to vps?
Good afternoon everyone, please help, and I hope for your tolerance! I rebuilt the server several times already, I didn’t understand why my application didn’t work, although a single file was launched and displayed on the Hello World domain address, but the whole project didn’t give a damn, it gave out 502 then 504
Ubuntu 18.0, nginx, is a brief description of what I work with .
I created a wiretap on port 443, made virtual hosts on the domain, hung up the html file in /var/www/site.com/ , everything works, html is loaded on the domain via https.
This is from sites-available config
server {
listen 80;
listen [::]:80;
root /var/www/site.com/html;
index index.html index.htm index.nginx-debian.html;
server_name site.com www.site.com;
location / {
try_files $uri $uri/ =404;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question