Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use:

http {
        limit_req_zone  $binary_remote_addr  zone=one:10m   rate=5r/s;
server {
    location ~ \.php$ {
            limit_req   zone=one  burst=2 nodelay; 
            try_files $uri $uri/ /index.php;
            root   /var/www/;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        fastcgi_params;

How can I disable limit for IP: and

share|improve this question
geo $limited_ip {
    default      1;    0;  0;

map $limited_ip $limited_ip_key {
    0 '';
    1 $binary_remote_addr;

limit_req_zone $limited_ip_key zone=one:10m rate=5r/s;;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.