Getting built in 404 instead of my custom one
Ian M. Evans
ianevans at digitalhit.com
Tue Oct 9 08:51:50 UTC 2012
On Tue, October 9, 2012 4:46 am, Igor Sysoev wrote:
> 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;
> }
that's better, thanks.
More information about the nginx
mailing list