<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Hi Reinis,<br><br>Thanks for your quickly response. But it still doesn't work. <br>Below is my configurations, could you please help to check?<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></div><div id="divNeteaseMailCard"></div><br><pre><br>At 2012-07-19 23:27:01,"Reinis Rozitis" <r@roze.lv> wrote:
>> But it seems that this rule is not working, could you please help?
>
>Regular expression locations are matched in the order they are defined in the nginx config file, so you need to put that location 
>above .
>
>http://wiki.nginx.org/HttpCoreModule#location
>
>
>rr 
>
>_______________________________________________
>nginx mailing list
>nginx@nginx.org
>http://mailman.nginx.org/mailman/listinfo/nginx
</pre></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>