Trigger alternate response based on file presence or other URL response

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


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

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: https://forum.nginx.org/read.php?2,281639,281640#msg-281640



More information about the nginx mailing list