<p class="MsoNoSpacing">Hi all,</p>
<p class="MsoNoSpacing">I have a 404 custom page set like this</p>
<p class="MsoNormal">
error_page 404 = @errorpages;</p>
<p class="MsoNormal">
error_page 500 = @errorpages;</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> location
@errorpages {</p>
<p class="MsoNormal"> root /var/www/;</p>
<p class="MsoNormal"> internal;</p>
<p class="MsoNormal"> proxy_pass <a href="http://localhost:82">http://localhost:82</a>;</p>
<p class="MsoNormal"> proxy_set_header Host $host;</p>
<p class="MsoNormal"> proxy_set_header X-Real-IP $remote_addr;</p>
<p class="MsoNormal"> proxy_set_header Accept-Encoding
"";</p>
<p class="MsoNormal"> proxy_ignore_headers Set-Cookie; </p>
<p class="MsoNormal"> proxy_ignore_headers Cache-Control; </p>
<p class="MsoNormal"> proxy_ignore_headers Expires; </p>
<p class="MsoNormal"> proxy_ignore_headers X-Accel-Expires; </p>
<p class="MsoNormal"> add_header X-Cache-Status
$upstream_cache_status;</p>
<p class="MsoNormal"> proxy_cache cache;</p>
<p class="MsoNormal"> proxy_cache_key $request_uri;</p>
<p class="MsoNormal">
proxy_cache_use_stale updating;</p>
<p class="MsoNormal"> } </p>
<p class="MsoNoSpacing">But every now and then I am hitting the nginx vanilla 404
pages, especially when hitting rate limiting. </p>
<p class="MsoNoSpacing">How do I close the gaps to ensure I am showing only the
custom 404’s ?</p><br clear="all">- Quintin<br>