Nginx Virtual Host upstream error

Posted by TenJack on Server Fault See other posts from Server Fault or by TenJack
Published on 2012-03-27T05:07:48Z Indexed on 2012/03/27 5:31 UTC
Read the original article Hit count: 213

Filed under:
|

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.

© Server Fault or respective owner

Related posts about nginx

Related posts about thin