<font color="#000099"><div>Hi all,</div><div><br></div><div>I tried using this method with `try_files`. Didn’t work. Also the HTTP status code(503) is not being set. </div><div><br></div><div> location / {</div>
<div> <span style="white-space:pre-wrap"> </span> try_files /var/www/during_build.html @maintenance;</div><div> proxy_pass <a href="http://localhost:82" target="_blank">http://localhost:82</a>;</div><div>
}</div><div> </div><div> location @maintenance {</div><div> <span style="white-space:pre-wrap"> </span> return 503;</div><div> }</div><div><br></div><div>This method outside of `location` directive</div>
<div><br></div><div><span style="white-space:pre-wrap"> </span> error_page 503 /var/www/during_build.html;</div><div><br></div><div><span style="white-space:pre-wrap"> </span> ## System Maintenance (Service Unavailable) </div>
<div><span style="white-space:pre-wrap"> </span> if (-f /var/www/during_build.html) {</div><div><span style="white-space:pre-wrap"> </span> return 503;</div><div><span style="white-space:pre-wrap"> </span> }</div>
<div><br></div><div>Is also not working. Nginx just returns 503 without the custom page. </div><div><br></div><div>What is the correct way to show system down pages? </div><div><br></div><div><br></div><div>-Quintin</div>
</font>