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.

Hello,
I have two sites, each with their own domain, on one droplet. I’m running Ubuntu and nginx. The first site is a static site and the second is a NodeJS app.
www.site1.com or site1.com works fine.
When I type site2.com it points to the second site fine.
However, if I type www.site2.com it serves just the index.html of the first site with no styles/scripts.
Each are on there own server block via this tutorial. The node server block looks like this:
server {
listen 80;
server_name site1.com www.site1.com;
location / {
proxy_pass http://<DROPLET_IP>:<NODE_SERVER_PORT>;
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;
}
}
I have a CNAME alias for the second site that points www to site2.com.
Any help would be appreciated, thanks.
ebeecroft
68aa2215160846bca0a00f952c5fdc
009fd274aeae48f2bfbda6ef568676
Cloudstream Apk
032f50ee7f7d489db3b05e204fe139
032f50ee7f7d489db3b05e204fe139
Edward Sitarski
ebeecroft
dashan
34bcef38725b4e6eb5224ae028f17e