<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> <!--@import url(C:\Program Files\Netease\网易闪电邮\\data\scrollbar.css); --></STYLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}; </STYLE>
<META name=GENERATOR content="MSHTML 9.00.8112.16430"><BASE
target=_blank></HEAD>
<BODY
style="BORDER-RIGHT-WIDTH: 0px; MARGIN: 12px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px"
marginheight="0" marginwidth="0"><STATIONERY>
<DIV>
<DIV><FONT color=#000000 size=3 face=宋体>Thank your reply.</FONT></DIV>
<DIV><FONT color=#000000 size=3 face=宋体>But it is not for my
question.</FONT></DIV>
<DIV><FONT color=#000000 size=3 face=宋体>When the item isn't cached(If it is very
large over 1G,it would take a long time to be cached),many normal users download
it,then the proxy server would download the item from upstream server
with many connections.</FONT></DIV>
<DIV><FONT color=#000000 size=3 face=宋体></FONT> </DIV>
<DIV><FONT face=宋体>I seach the forum,found the same question: <A
href="http://forum.nginx.org/read.php?2,193353,193633#msg-193633">http://forum.nginx.org/read.php?2,193353,193633#msg-193633</A></FONT></DIV>
<DIV><FONT face=宋体></FONT> </DIV>
<DIV><FONT face=宋体><EM>Currently, there is no good way to handle this. Solution
is<BR>usually called "busy locks" (search list archives for details),<BR>but
it's not ready yet.<BR><BR>Maxim Dounin<BR></EM></FONT></DIV>
<DIV><FONT face=宋体>I am waiting for later version.</DIV></FONT>
<DIV align=left><FONT color=#c0c0c0 size=2
face=Verdana>2011-07-16</FONT></DIV><FONT size=2 face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN
id=_FlashSignName>chinix</SPAN></FONT></DIV></FONT>
<DIV>
<HR>
</DIV>
<DIV>发件人: António P. P. Almeida <appa@perusio.net></DIV>
<DIV>发送时间: 2011-07-15 20:49</DIV>
<DIV>主 题: Re: about "large file" and "resume download" on reverse proxy
mode</DIV>
<DIV>收件人: nginx@nginx.org</DIV>
<DIV><BR><BR></DIV>
<DIV>On 15 Jul 2011 06h39 WEST, chinix@gmail.com wrote: </DIV>
<DIV> </DIV>
<DIV>> Dear list, I am testing nginx with reverse proxy mode. I </DIV>
<DIV>> found that nginx download the file from upstream server to </DIV>
<DIV>> proxy_temp_path when I download a file from the reverse proxy </DIV>
<DIV>> server,if I stop and re-download,the nginx will download the file </DIV>
<DIV>> from upstream server again,and so on. The problem is when a large </DIV>
<DIV>> file on a site,someone could launch malicious multi-threaded </DIV>
<DIV>> connections to attack the reverse proxy server and upstream server. </DIV>
<DIV>> any configuration to limit it? </DIV>
<DIV> </DIV>
<DIV>See http://wiki.nginx.org/HttpLimitReqModule and </DIV>
<DIV>http://wiki.nginx.org/HttpLimitZoneModule. </DIV>
<DIV> </DIV>
<DIV>--- appa </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>_______________________________________________ </DIV>
<DIV>nginx mailing list </DIV>
<DIV>nginx@nginx.org </DIV>
<DIV>http://nginx.org/mailman/listinfo/nginx </DIV></DIV></STATIONERY></BODY></HTML>