Trigger alternate response based on file presence or other URL response

dhallam nginx-forum at
Thu Oct 18 17:59:59 UTC 2018

So i can see that I can do something like the maintenance mode example,

if (-f $document_root/under_maintenance.html) {
   return 503;

Wondering if there is a way to use the URL endpoint to check.

Posted at Nginx Forum:,281639,281640#msg-281640

More information about the nginx mailing list