Igor: I do not, I only have those two.<div><br></div><div>Roxis: I cant do this easily since I can&#39;t use a location directive because this is at the http level rather than the server level.</div><div><br class="webkit-block-placeholder">
</div><div><br class="webkit-block-placeholder"></div><div><div class="gmail_quote">On Thu, Feb 21, 2008 at 1:19 AM, Roxis &lt;<a href="mailto:roxis@list.ru">roxis@list.ru</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="Wj3C7c">On Thursday 21 February 2008, Jamie Quint wrote:<br>
&gt; I have this under http in my nginx.conf file:<br>
&gt; &nbsp; &nbsp; error_page &nbsp; 404 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/var/www/apps/myapp/templates/404.html;<br>
&gt; &nbsp; &nbsp; error_page &nbsp; 502 503 504 &nbsp;/var/www/apps/myapp/templates/500.html;<br>
&gt;<br>
&gt; I can access these at <a href="http://myapp.com/500.html" target="_blank">myapp.com/500.html</a> and <a href="http://myapp.com/400.html" target="_blank">myapp.com/400.html</a> but when I<br>
&gt; get a 502 gateway error instead of displaying the 500.html page I get the<br>
&gt; default nginx page. Any suggestions?<br>
<br>
</div></div>you should specify URI or URL, but not full path<br>
<br>
error_page 404 /404.html;<br>
error_page 502 503 504 /500.html;<br>
<br>
</blockquote></div><br></div>