Skip to content

Commit f5c3ebc

Browse files
authored
Tweak test
1 parent 0f14b31 commit f5c3ebc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/modsecurity-limits.t

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,17 @@ events {
3333
http {
3434
%%TEST_GLOBALS_HTTP%%
3535
36-
limit_req_zone $binary_remote_addr zone=limitzone:10m rate=2r/m;
36+
limit_req_zone $binary_remote_addr zone=limitzone:10m rate=2r/s;
37+
limit_req_status 429;
3738
3839
server {
3940
listen 127.0.0.1:8080;
4041
server_name localhost;
4142
4243
modsecurity on;
44+
limit_req zone=limitzone nodelay;
4345
4446
location /limit {
45-
limit_req zone=limitzone burst=2 nodelay;
4647
modsecurity_rules '
4748
SecRuleEngine On
4849
SecRule REQUEST_URI "@rx .*" "id:1001,phase:1,log,deny,status:403,msg:\'Request reached ModSecurity\'"

0 commit comments

Comments
 (0)