I'm running two Meteor apps on Digital Ocean droplet. Using nginx to reverse proxy. Both are running successfully on non-www domains, but on www.my-domain1.com and www.my-domain2.com are only 'Welcome to nginx on Debian!' pages. I assume it's because in configuration file I use only non-www domain as following:
server {
listen 80;
server_name my-domain1.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $remote_addr;
}
}
and the similar, but different domain and port for the second application. I tried to redirect using Digital Ocean tutorial., but it doesn't work and also I should see application working on www domain too.