Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.