Rate Limiting

Learn how to configure rate limiting

NGINX for Azure supports rate limiting via the ngx_http_limit_req_module module to limit the processing rate of requests. For more information on rate limiting with NGINX, see NGINX Limiting Access to Proxied HTTP Resources and Rate Limiting with NGINX and NGINX Plus.

Configuring Basic Rate Limiting

http {

    limit_req_zone $binary_remote_addr zone=mylimit:10m rate=1r/s;
    server {

        location /login/ {
            limit_req zone=mylimit;

Currently, NGINX for Azure disables the sync parameter because NGINX instances in NGINX for Azure are not deployed as a cluster, so each instance has its own memory zones.

What’s Next

For help with troubleshooting, see Enable NGINX for Azure Monitoring