How do I increase the rate limit in Nginx?
Update the limit_req_zone rate (e.g., from rate=10r/s to rate=20r/s). Test with nginx -t and reload. This immediately applies the new rate to all new connections. Existing connections continue with the old rate until they reconnect.
Verify This Answer
Cross-check this information using these trusted sources:
More FAQs in Nginx Config Update Checklist and Summary Complete Guide for Node.js
Always: back up the current config, edit the config, test with nginx -t, reload with systemctl reload nginx (zero downtime), verify with systemctl status and curl, and rollback if needed. Never skip the test step a syntax error could take down your entire app.
Initial: server block and proxy_pass. SSL: certbot --nginx. WebSocket: /socket.io/ block with Upgrade headers. Frontend: static files with try_files. Performance: gzip, caching, workers. Security: headers, rate limiting. Load balancing: upstream with ip_hash.
Add a new server block with server_name new.yourdomain.com and the appropriate location/proxy_pass. Get SSL with sudo certbot --nginx -d new.yourdomain.com. Test with nginx -t and reload. Ensure DNS A record for the subdomain points to your server.
Still have questions?
Browse all our FAQs or reach out to our support team
