Nginx Rate Limiting on RHEL 9
Define zones in http block
http {
limit_req_zone $binary_remote_addr zone=api:10m rate=10r/s;
limit_req_zone $binary_remote_addr zone=login:10m rate=5r/m;
}
Apply to locations
location /api/ {
limit_req zone=api burst=20 nodelay;
limit_re...