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?
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?