I added this into my config file, and put my-503-error.html in the same location as the default 50x.html file, but all I get is a generic 404 error page.<br><br>Is that not the document root for nginx?<br><br><div class="gmail_quote">
On Thu, Mar 15, 2012 at 3:24 PM, Francis Daly <span dir="ltr"><<a href="mailto:francis@daoine.org">francis@daoine.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Mar 15, 2012 at 10:48:13AM -0400, Bai Shen wrote:<br>
<br>
Hi there,<br>
<br>
</div><div class="im">> How do I get nginx to serve the page? I added in the line from the link,<br>
> but I still get the default nginx page, not my custom one.<br>
<br>
</div>===<br>
server {<br>
error_page 503 /my-503-error.html;<br>
location / {<br>
return 503;<br>
}<br>
location = /my-503-error.html {<br>
internal;<br>
}<br>
}<br>
===<br>
<br>
will serve the content of the file my-503-error.html in your document<br>
root with a http status 503 for (almost) every request to this server.<br>
<div class="HOEnZb"><div class="h5"><br>
f<br>
--<br>
Francis Daly <a href="mailto:francis@daoine.org">francis@daoine.org</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br>