I&#39;ll do that, thanks.<div><br class="webkit-block-placeholder"></div><div>I almost did it that way initially but was trying to avoid the duplication :)</div><div><br class="webkit-block-placeholder"></div><div>Best,</div>
<div>Jamie</div><div><br><br><div class="gmail_quote">On Thu, Feb 21, 2008 at 1:49 AM, Igor Sysoev &lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d">On Thu, Feb 21, 2008 at 01:32:43AM -0800, Jamie Quint wrote:<br>
<br>
&gt; Igor: I do not, I only have those two.<br>
&gt; Roxis: I cant do this easily since I can&#39;t use a location directive because<br>
&gt; this is at the http level rather than the server level.<br>
<br>
</div>Roxis is right: you should set URI, but not file path.<br>
<br>
http {<br>
<div class="Ih2E3d"><br>
 &nbsp; &nbsp; error_page &nbsp; &nbsp;404 &nbsp; &nbsp; &nbsp; &nbsp; /404.html;<br>
 &nbsp; &nbsp; error_page &nbsp; &nbsp;502 503 504 /500.html;<br>
<br>
</div> &nbsp; &nbsp; server {<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; location = /404.html { root &nbsp;/var/www/apps/myapp/templates; }<br>
 &nbsp; &nbsp; &nbsp; &nbsp; location = /500.html { root &nbsp;/var/www/apps/myapp/templates; }<br>
<div class="Ih2E3d"><br>
<br>
&gt; On Thu, Feb 21, 2008 at 1:19 AM, Roxis &lt;<a href="mailto:roxis@list.ru">roxis@list.ru</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; On Thursday 21 February 2008, Jamie Quint wrote:<br>
&gt; &gt; &gt; I have this under http in my nginx.conf file:<br>
&gt; &gt; &gt; &nbsp; &nbsp; error_page &nbsp; 404 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/var/www/apps/myapp/templates/404.html;<br>
&gt; &gt; &gt; &nbsp; &nbsp; error_page &nbsp; 502 503 504 &nbsp;/var/www/apps/myapp/templates/500.html;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &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<br>
&gt; &gt; I<br>
&gt; &gt; &gt; get a 502 gateway error instead of displaying the 500.html page I get<br>
&gt; &gt; the<br>
&gt; &gt; &gt; default nginx page. Any suggestions?<br>
&gt; &gt;<br>
&gt; &gt; you should specify URI or URL, but not full path<br>
&gt; &gt;<br>
&gt; &gt; error_page 404 /404.html;<br>
&gt; &gt; error_page 502 503 504 /500.html;<br>
<br>
<br>
</div><div><div></div><div class="Wj3C7c">--<br>
Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</div></div></blockquote></div><br></div>