Getting built in 404 instead of my custom one

Igor Sysoev igor at sysoev.ru
Tue Oct 9 08:46:51 UTC 2012


On Oct 9, 2012, at 12:34 , Ian M. Evans wrote:

> On Tue, October 9, 2012 4:26 am, Ian M. Evans wrote:
> [snip]
>> 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_pass 127.0.0.1:10004;
> fastcgi_cache_valid 0s;
> }
> 
> and made the cache valid 0. Seems to work.

location = /dhe404.shtml {
    fastcgi_pass   ...
    fastcgi_cache  off;
}


--
Igor Sysoev
http://nginx.com/support.html



More information about the nginx mailing list