<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
...<br>
On 13/02/2011 06:02, Richard Kearsley wrote:
<blockquote
cite="mid:32668C1E8A82284F873E8830836260573DB1335A2C@office-server1.m247.local"
type="cite">
<div class="WordSection1"><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><o:p></o:p>
<p class="MsoNormal">location /main {<o:p></o:p></p>
<p class="MsoNormal" style="text-indent: 36pt;">set $myvar '';<o:p></o:p></p>
<p class="MsoNormal" style="text-indent: 36pt;">set $limit_rate
99;</p>
</div>
</blockquote>
...<br>
<blockquote
cite="mid:32668C1E8A82284F873E8830836260573DB1335A2C@office-server1.m247.local"
type="cite">
<div class="WordSection1">
<p class="MsoNormal" style="text-indent: 36pt;">set $limit_rate
$myvar;</p>
</div>
</blockquote>
As well as the points agentzh made, there is also the case here that
$limit_rate does a check on the values that it is set to, and it
must be a valid size (internally this is done by having a
set_handler attached to the variable - something most variables
don't have). <br>
<br>
Here, you are trying to set it to '' (i.e. empty), and this is
invalid, and it will :<br>
(a) throw an error in the error log, saying that it's an 'invalid
size'<br>
(b) do nothing to the value, therefore leaving it at 99 rather than
setting it to ''<br>
<br>
With the config you have, most variables would result in your
headers being<br>
...<br>
<p class="MsoNormal">X-Test: 100</p>
X-Limit: <br>
<br>
But you see X-Limit: 99 because of this reason.<br>
<br>
Cheers,<br>
<br>
Marcus.<br>
</body>
</html>