I tried several approach but all failed, limit_req specified isn't applied. location ~* /(proxy\.php) { limit_req zone=reqperiplimit burst=30 nodelay; try_files $uri /index.php?$uri&$args; ... } location /proxy.php {...