Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Rate Limiter not working for index.php

$
0
0
I am using this location block with php

location ~ \.php$ {
try_files $uri =404;
limit_req zone=limit burst=3 nodelay;
fastcgi_pass php_farm;
include nginx.fastcgi.conf;

}

If I go to localhost/testxxx.php and start F5 spamming, it will work. **BUT**, if I just go to localhost and start refreshing/f5, nothing happens and it doesn't activate the limit_req, any idea? It seems like it's not catching my main index.php file because it's not shown in the URL? (localhost) with no trailing slash? Any idea how catch index.php inside the location?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>