I have this under http in my nginx.conf file:<div><br></div><div><div>&nbsp;&nbsp; &nbsp;error_page &nbsp; 404 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/var/www/apps/myapp/templates/404.html;</div><div>&nbsp;&nbsp; &nbsp;error_page &nbsp; 502 503 504 &nbsp;/var/www/apps/myapp/templates/500.html;</div>

<div><br></div><div>I can access these at <a href="http://myapp.com/500.html">myapp.com/500.html</a> and <a href="http://myapp.com/400.html">myapp.com/400.html</a> but when I get a 502 gateway error instead of displaying the 500.html page I get the default nginx page. Any suggestions?</div>
<div><br class="webkit-block-placeholder"></div><div>Best,</div><div>Jamie</div></div>