Re: Need help setting up cache for failover

2014-12-04 Thread B.R.
I notice error_page is used at server level while fastcgi_cache_use_stale is at http level. error_page has thus higher precedence than the last. I would give a shot at putting both at the same level and see what happens. I trust error_page is some kind of 'last resort' feature, handling an error w

Re: Need help setting up cache for failover

2014-12-04 Thread Fry-kun
I am; that was a copy/paste error. The original config is around 3000 lines, it was easier to type & copy/paste than cleaning up unnecessary lines. ~Konstantin B.R. Wrote: --- > Quick quesiton; I see you are using proxy_intercept_errors. Shoul

Re: Need help setting up cache for failover

2014-12-04 Thread B.R.
Quick quesiton; I see you are using proxy_intercept_errors. Should not you be using fastcgi_intercept_errors ? --- *B. R.* On Thu, Dec 4, 2014 at 2:25 AM, Fry-kun wrote: > I'm trying to configure my sites to fa

Need help setting up cache for failover

2014-12-03 Thread Fry-kun
I'm trying to configure my sites to failover to fastcgi_cache when backends are unavailable -- but at the same time I want to return nginx errors (hiding backend errors) Here's a simplified version of my current config: fastcgi_cache_path /dev/shm/nginx_fastcgi_cache levels=1:2 inactive=3d key