Getting built in 404 instead of my custom one

Ian M. Evans ianevans at
Tue Oct 9 08:34:19 UTC 2012

On Tue, October 9, 2012 4:26 am, Ian M. Evans wrote:
> So, though it's now serving the custom 404, it's still serving a cached
> version. So I guess I need a way to turn off caching for the custom 404
> file. Just tried another one and, of course, got a cached 404 that someone
> else had just tried.

Think I solved the cached issue.

Just created the location:

location = /dhe404.shtml {
 fastcgi_cache_valid 0s;

and made the cache valid 0. Seems to work.

More information about the nginx mailing list