<div dir="ltr"><div><div><div><div>Hi,<br><br></div>you could use a map that matches all cases to empty string and default value as non-empty<br><br>map $arg_capacity $my_default_key{~*([2-9]|10)X ""; default $http_x_forwarded_for;}<br>
<br></div>If it matches 2X to 10X, $my_default_key will be empty.<br><br></div>Cheers<br></div>Jader H. Silva<br><div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/25 Brian08275660 <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Francis,<br>
<br>
Now I need to create a limit that acts if the parameter ("capacity") is<br>
empty (not provided). How do I do that? I can't find how to, at least not<br>
using "map".<br>
(If provided, the other rules will evaluate it and one of them will act<br>
according to the value).<br>
<br>
Thanks in advanced!<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,244015,244123#msg-244123" target="_blank">http://forum.nginx.org/read.php?2,244015,244123#msg-244123</a><br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br></div></div></div>