Upstream fail over?

Mitchua Mitchua lists at ruby-forum.com
Fri Jul 31 22:00:05 MSD 2009


Mitchua Mitchua wrote:
> Mahiti Support wrote:
>> Mitchua Mitchua wrote:
>>> > 
>>> I tried a config like this on 0.8.6 and I found that all requests ended 
>>> up going to the @application proxy, skipping the @varnish proxy 
>>> entirely. Am I doing something wrong?
>>> 
>>> Here's a sample of my config:
>>> 
>>> 
>>>     location /
>>>   {
>>>     try_files @vanish @origin;
>>>   }
>>> 
>>> Thanks!
>> 
>> Hi,
>> 
>> You seem to have put it as @vanish instead of @varnish.
>> Is that causing you the issue?
>> 
>> Vishnu
> 
> Sorry, bad copy/paste job ;)  Those are correct in the config I'm using.
> 
> Any ideas?  Does that look right?

I just tried this and the root document of the website hits the varnish 
servers, but every other request doesn't. Could there be a pathing 
problem going on here?

location /
  {
    try_files $uri $uri/ @origin;
    proxy_pass http://varnishservers;
    proxy_set_header Host $host;
    proxy_connect_timeout 3;
    proxy_next_upstream error timeout;
  }




-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list