速率限制器不适用于索引页面?

时间:2015-04-29 05:38:52

标签: nginx

我正在使用这个位置块与php

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

如果我转到localhost / testxxx.php并启动F5垃圾邮件,limit_req将正常运行。 但是,如果我只是去localhost并开始刷新/ f5,没有任何反应,它不会激活limit_req,任何想法?好像它没有捕获我的主index.php文件,因为它没有显示在URL中? (localhost)没有斜杠?知道如何捕获位置块内的index.php吗?

0 个答案:

没有答案
相关问题