Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to set up nginx so that when a timeout occurs attempting to reach the upstream proxy, that it will just return the cached version on disk.

Can someone tell me how, as the docs are a little sparse on information.

share|improve this question
    
The question is: where this cached version on the disk came from? –  Alexander Azarov May 27 '10 at 15:50
1  
From a previously good request. –  Glen Solsberry May 27 '10 at 16:41

1 Answer 1

up vote 1 down vote accepted

proxy_cache_use_stale timeout;

to serve stale objects in case the upstream goes timeout and

proxy_connect_timeout 40;

to control the timeout...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.