Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

303
Views
Nginx how to rate limit specific http method of a resource?

I have a backend service running on port 8080. There are two endpoints:

  • GET /item
  • POST /item

I configured Nginx in the following way:

limit_req_zone $binary_remote_addr zone=mylimit:10m rate=20r/m;

server{

    listen 81;
    root /var/www;
    
    location /api {
        location /api/item {
            limit_req zone=mylimit;
            proxy_pass http://127.0.0.1:8080/item; 
        }
    }
}

This configuration rate limits requests for both the GET and POST method.

How to rate limit only the POST method?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!