help about limit_req
fhal
meteor8488 at 163.com
Thu Jul 19 15:29:51 UTC 2012
Hi Reinis,
Thanks for your quickly response. But it still doesn't work.
Below is my configurations, could you please help to check?
location ~*^/forum.php?mod=image$ {
root /web/www;
fastcgi_pass unix:/tmp/nginx.socket;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
location ~*^/(home|forum|portal).php$ {
root /web/www;
limit_conn addr 5;
limit_req zone=refresh burst=5 nodelay;
fastcgi_pass unix:/tmp/nginx.socket;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
location ~ \.php$ {
root /web/www;
fastcgi_pass unix:/tmp/nginx.socket;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
At 2012-07-19 23:27:01,"Reinis Rozitis" <r at 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 at nginx.org
>http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120719/96fed3b5/attachment.html>
More information about the nginx
mailing list