title: Magento Nginx 403 as 404 rewrite to controller 404
body: <p>So I am trying to protect sensitive information in Magento and I want <code>404</code> to be returned as HTTP status code instead of 403 for restricted pages so that potential threats are not aware that the directory they are accessing even exists. </p>
  
  <pre><code>location ^~ /supersecretdirectory/ {
       return 404;
  }
  </code></pre>
  
  <p>However what I get is the default Nginx 404. Is there a way to force Nginx use Magento's 404 page?</p>