Welcome! Log In Create A New Profile

Advanced

proxy max file size

Kingsley Foreman
December 03, 2009 08:46AM
Hi Folks,

Im just trying something out with proxy_pass,

I want to create a small cache for proxy_pass so im using


http { proxy_cache_path /var/nginx/cache levels=1:2 keys_zone=my-cache:8m max_size=1300m inactive=20m; proxy_temp_path /var/nginx/cache/tmp; server { location / { proxy_pass http://example.net; proxy_cache my-cache; proxy_cache_valid 200 302 30m; proxy_cache_valid 404 5m; } }}However what I would like to know is if there is a way to limit the size of the file being cached, for example if you have files ranging from 1-20mb, however you only want to cache files smaller then 6mb how would you do it? Kingsley _______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy max file size

Kingsley Foreman December 03, 2009 08:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 90
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready