Welcome! Log In Create A New Profile

Advanced

Re:Re: Re:Re: help about limit_req

fhal
July 19, 2012 11:32AM
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@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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

help about limit_req

fhal July 18, 2012 02:22AM

Re: help about limit_req

Reinis Rozitis July 18, 2012 08:24AM

Re:Re: help about limit_req

fhal July 18, 2012 12:34PM

Re: Re:Re: help about limit_req

Reinis Rozitis July 18, 2012 06:16PM

Re:Re: help about limit_req

fhal July 19, 2012 11:06AM

Re: Re:Re: help about limit_req

Reinis Rozitis July 19, 2012 11:28AM

Re:Re: Re:Re: help about limit_req

fhal July 19, 2012 11:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 87
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready