Forum: NGINX max file size for proxy_cache_path

Posted by Andrey Feldman (Guest)
on 2012-10-01 21:51
(Received via mailing list)
Hi.
Is there any way to limit size of file, that can be cached into
proxy_cache_path?

For example, we have:
proxy_cache_path  /var/nginx/cache/html         levels=1:2
keys_zone=html-cache:18m max_size=5g inactive=60m;

So, if someone on backend will place a 2G file, and it will be cached,
the big part of useful cached data will be destroyed by cache manager.
And second problem - we can't be sure, that proxy_temp_path and
proxy_cache_path will not be overflowed.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.