I have a bulk search form on apache servers behind nginx. I'd like to protect that location so that the second request in a 10 minute period gets 301'd to a "Would you like to use our API" page instead with something like:
http {
limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
server {
location = /search/bulk {
limit_req zone=one burst=2;
... SOME CONFIG HERE...
}
}
}
How would I 301 the end client when they hit my limit_req instead of showing a ngnix error page? Also, secondarily, I don't want to throttle traffic to the whole http clause. Can I set up a limit_req_zone without a rate, but have them in my location stanzas?
Thanks,
M.