<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">I got a problem with NGINX limit_req_zone. Anyone can help? The problem is that, I want to limit user access to some specific URL, for example:<br><br><blockquote>/forum.php?mod=forumdisplay?<br>/forum.php?mod=viewthread&***<br></blockquote><br>But, I do want to add an exception for below URL,<br><br><blockquote>/forum.php?mod=image&*<br></blockquote><br>Below is the location section of my configuration, the problem is that, for URL started with /forum.php?mod=image&*, the limitation is still applied.<br>Any body can help?<br><br>location ~*^/forum.php?mod=image$ {<br>    root           /web/www;<br>    fastcgi_pass   unix:/tmp/nginx.socket;<br>    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;<br>    include        fastcgi_params;<br>    }<br>location ~*^/(home|forum|portal).php$ {<br>    root           /web/www;<br>    limit_conn   addr  5;<br>    limit_req zone=refresh burst=5 nodelay;<br>    fastcgi_pass   unix:/tmp/nginx.socket;<br>    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;<br>    include        fastcgi_params;<br>    }<br>location ~ \.php$ {<br>    root           /web/www;<br>    fastcgi_pass   unix:/tmp/nginx.socket;<br>    fastcgi_index  index.php;<br>    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;<br>    include        fastcgi_params;<br>    }<br><br></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>