I take it error_page.conf resets the error_page for 503? What happens if you try with something like "error_page NNN = @location;"?<br><br><div class="gmail_quote">On Tue, Jan 6, 2009 at 3:44 PM, Jonathan Vanasco <span dir="ltr"><<a href="mailto:nginx@2xlp.com">nginx@2xlp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">i just discovered this after 2 hours of testing<br>
<br>
If you define error_page for a server block multiple times, only the first one will take, subsequent ones will not override<br>
<br>
That means if you store your error pages in a macro, to override it would be:<br>
<br>
error_page 503 /503.error<br>
include /usr/local/nginx/_macros/error_page.conf;<br>
<br>
and not<br>
<br>
include /usr/local/nginx/_macros/error_page.conf;<br>
error_page 503 /503.error<br>
<br>
I'm not sure if this was intended or not ( personally , i don't like it ).<br>
<br>
but I wanted to share this with others. <br>
<br>
<br>
<br>
</blockquote></div><br>