Nginx Virtual Host upstream error
- by TenJack
I'm trying to add another virtual host and it keeps giving me this:
host not found in upstream "domain1"
error, even though I have changed the upstream from domain1 to something else in my sites-enabled file. It used to be domain1, but it's almost as if nginx is caching this value somewhere. This is what my sites-available/mysite.com file looks like:
upstream mysite {
server 127.0.0.1:5000;
}
server {
listen 80;
server_name www.mysite.com;
rewrite ^/(.*)$ http://mysite.com/$1 permanent;
}
}
And my thin server is running on port 5000 for this.