I'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 <<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>> 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>
> Igor: I do not, I only have those two.<br>
> Roxis: I cant do this easily since I can't use a location directive because<br>
> 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>
error_page 404 /404.html;<br>
error_page 502 503 504 /500.html;<br>
<br>
</div> server {<br>
<br>
location = /404.html { root /var/www/apps/myapp/templates; }<br>
location = /500.html { root /var/www/apps/myapp/templates; }<br>
<div class="Ih2E3d"><br>
<br>
> On Thu, Feb 21, 2008 at 1:19 AM, Roxis <<a href="mailto:roxis@list.ru">roxis@list.ru</a>> wrote:<br>
><br>
> > On Thursday 21 February 2008, Jamie Quint wrote:<br>
> > > I have this under http in my nginx.conf file:<br>
> > > error_page 404 /var/www/apps/myapp/templates/404.html;<br>
> > > error_page 502 503 504 /var/www/apps/myapp/templates/500.html;<br>
> > ><br>
> > > 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>
> > I<br>
> > > get a 502 gateway error instead of displaying the 500.html page I get<br>
> > the<br>
> > > default nginx page. Any suggestions?<br>
> ><br>
> > 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>
<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>