Max File Size Allowed In Cache

martinproinity nginx-forum at
Wed Oct 1 03:38:59 UTC 2014

Thanks Maxim. Is it possible the filter on a value "larger than" or "smaller
than"? How would the regex in the map block look like? e.g. smaller than

I tried something like this, which is not working:
map $upstream_http_content_length $docache {
        default         0;
        "~*([1-9][0-9]{0,6}|1000)$" 1;

Posted at Nginx Forum:,253260,253652#msg-253652

More information about the nginx mailing list