Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to make nginx stop serving files after some amount of traffic has happened in a given period of time? Something like - if the server served more than 1G in the last day, stop serving. By stop I preferably mean no response at all (as if it were stopped completely), but other options, such as connection refused, slow down or serve a specific HTTP response code (e.g. 503) or similar, are OK, too.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.