title: NGINX custom 404 page without redirect
body: <p>By default, when NGINX returns a 404 it renders some default HTML.  For example, something like:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;&lt;title&gt;404 Not Found&lt;/title&gt;&lt;/head&gt;
  &lt;body bgcolor="white"&gt;
  &lt;center&gt;&lt;h1&gt;404 Not Found&lt;/h1&gt;&lt;/center&gt;
  &lt;hr&gt;&lt;center&gt;nginx/1.10.0 (Ubuntu)&lt;/center&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I'd like to customize this HTML but leave the URL unchanged.  I've tried setting the error page for 404s:</p>
  
  <pre><code>error_page 404 /404.html
  </code></pre>
  
  <p>But this first redirects the browser to <code>/404.html</code>.</p>
  
  <p>Is there a way to customize the 404 HTML without redirecting?</p>