<div>Hi,</div><div>probably better place for these questions would be nginx-users, but I ask here.</div><div>I want to serve static pages as error codes but without changing the error code.</div><div><br></div><div>Now if:</div>
<div>error_page 404 <a href="http://blablabla.com/404.html">http://blablabla.com/404.html</a></div><div>There is 302 and next 200 OK</div><div>I want 404.</div><div><br></div><div>error_page 404 /404.html</div><div>it works, but:</div>
<div>if there is:</div><div>location = /404.html {</div><div>internal;</div><div>}</div><div>then cannot be a normal location</div><div>location = /404.html {</div><div>},</div><div>so request such as <a href="http://blabla1.com/404.html">http://blabla1.com/404.html</a> won&#39;t work.</div>
<div><br></div><div>error_page 404 @404;</div><div>location @404 {</div><div>   root /blabla;</div><div>   index 404.html;</div><div>}</div><div>doesn&#39;t work either</div><div><br></div><div>There must be some way to achieve it.</div>
<div>How?</div><div><br></div>