title: nginx custom error page 502 with css and image files
body: <p>I'm trying to add a custom error page for 503. I added these lines to server conf in nginx.conf file:</p>
  <pre><code>error_page 500 502 503 504 /50x.html;
  location = /50x.html {
      root  /home/username/sites/myProject/current/errorPages;
      internal;
  }
  </code></pre>
  <p>It displays the custom page when uwsgi is down, however this doesn't show any images. I tried many different configurations  I can think of, but no luck. How I can display image file and enable css for a custom error page?</p>
  <p>I put my custom error page into <code>/home/username/sites/myProject/current/errorPages</code>
  and the file structure is:</p>
  <pre><code>errorPages/50x.html
  errorPages/50x_files/50x.css
  errorPages/50x_files/50x.js
  errorPages/50x_files/image.png
  </code></pre>