About "large file" and "resume download" on reverse proxy mode

Dear list,
I am testing nginx with reverse proxy mode.
I found that nginx download the file from upstream server to
proxy_temp_path when I download a file from the reverse proxy server,if
I stop and re-download,the nginx will download the file from upstream
server again,and so on.
The problem is when a large file on a site,someone could launch
malicious multi-threaded connections to attack the reverse proxy server
and upstream server.
any configuration to limit it?

Another problem, when I pause and resume to download, and nginx has not
finished download from upstream server,it would show the message:the
server error.But when the file cached,it works fine.

Best

2011-07-15

chinix

On 15 Jul 2011 06h39 WEST, [email protected] wrote:

Dear list, I am testing nginx with reverse proxy mode. I
found that nginx download the file from upstream server to
proxy_temp_path when I download a file from the reverse proxy
server,if I stop and re-download,the nginx will download the file
from upstream server again,and so on. The problem is when a large
file on a site,someone could launch malicious multi-threaded
connections to attack the reverse proxy server and upstream server.
any configuration to limit it?

See Module ngx_http_limit_req_module and
http://wiki.nginx.org/HttpLimitZoneModule.

— appa