Wanted: suggestions on how to invert proxy_pass return codes
    Jonathan Matthews 
    contact at jpluscplusm.com
       
    Tue Mar  5 00:17:03 UTC 2013
    
    
  
A slight thinko crept in to my original mail; there's a small
difference (which does remove a minor complexity) as I've marked below
...
On 4 March 2013 23:58, Jonathan Matthews <contact at jpluscplusm.com> wrote:
[snip]
> --------------------------------------------------------------------------
> location /healthcheck/ {
>   if (!-f /tmp/flag) {
>     return 503;
>   }
SHOULD BE:
"
  if (-f /tmp/flag) {
    return 200;
  }
"
[snip]
> --------------------------------------------------------------------------
>
> Before making the proxy_pass call, check a marker on disk and serve a
> (real, not translated to =200) 503 if it exists.
SHOULD BE: "... serve a 200 if it exists."
I don't think this changes the meat of the problem - it just removes
one minor niggle.
Any thoughts?
-- 
Jonathan Matthews // Oxford, London, UK
http://www.jpluscplusm.com/contact.html
    
    
More information about the nginx
mailing list