help about limit_req

fhal meteor8488 at
Wed Jul 18 16:32:32 UTC 2012

Thanks Reinis.

I tried to use the code you provided, I'll get an error message 'file not found' (not 404)

At 2012-07-18 20:22:21,"Reinis Rozitis" <r at> wrote:
>> For now, the problem for me is, if I put below codes in NGINX, then my php file will stop execute.
>A quick fix would be just nest the locations or duplicate the fastcgi part. For example:
>location ~*^/(home|forum|portal).php$ {
>          limit_conn   addr  3;
>          limit_req zone=refresh burst=3 nodelay;
>          fastcgi_pass   unix:/tmp/nginx.socket;
>          fastcgi_index  index.php;
>          fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
>          include        fastcgi_params;
>nginx mailing list
>nginx at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list