nginx의limit_req가 작동하지 않습니다.

nginx의limit_req가 작동하지 않습니다.

나는 Apache + nginx 프록시와 함께 Ubuntu 서버 14.04를 사용하고 있습니다. /etc/nginx-sp/nginx-sp.conf에서limit_req를 설정하려고 했습니다.

다음과 같이:

http {
    limit_req_zone $binary_remote_addr zone=one:1m rate=10r/s;
    limit_req zone=one burst=50 nodelay;
.....

이 테스트를 수행했을 때 아무 일도 일어나지 않았습니다.

ab -c 1000 -n 1000000 http://example.com

/var/log/nginx-sp에는limit_req에 대한 로그가 전혀 없습니다.

Limit_req가 적용되지 않았거나 시뮬레이션된 DDoS 공격이 충분하지 않은 것 같습니다.

내 Cloudflare가 꺼져 있습니다.

관련 정보