Hello,
I would like to delay proxying a request for a few second, until the server is ready.
To do this, I'm attempting to use recursion:
[code]
if (-f $document_root/block_writes) {
proxy_pass http://127.0.0.1;
break;
}
[/code]
With this technique, I'm able to hang the request by doing:
[code]
touch document_root/block_writes
[/code]
However if I do:
[code]
rm document_root/block_writes
[/code]
the request is still hung.
Am I missing something? How do I get nginx to recheck if the file exists?
Thank you,
Brian