Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I have two domains and I want to run them on single droplet. I have many other websites and I think the issue is with nginx sites-available vim default file. I already have uploaded two folders inside /var/www/domain1/html… and another /var/www/domain2/html/… I have already run npm run build and everything works fine and I believe that the issue is with nginx sites-available vim default file.
My sites-available default file:
server {
listen 80;
server_name domain1.com;
root /var/www/domain1/html/domain1.com/;
location / {
proxy_pass http://127.0.0.1:8080;
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;
}
}
server {
listen 80;
server_name domain2.co.in;
root /var/www/domain2/html/domain2.co.in/;
location / {
proxy_pass http://127.0.0.1:3000;
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;
}
}
When i open my domains, on both domains nginx shows # 502 Bad Gateway.
ebeecroft
68aa2215160846bca0a00f952c5fdc
009fd274aeae48f2bfbda6ef568676
Cloudstream Apk
032f50ee7f7d489db3b05e204fe139
032f50ee7f7d489db3b05e204fe139
Edward Sitarski
ebeecroft
dashan
34bcef38725b4e6eb5224ae028f17e