Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

How to make possible something like this?

   location /download/ {
      limit_conn addr 2;

      if ($arg_C) {
          limit_conn addr 1;

Gives me:

Restarting nginx: nginx: [emerg] "limit_conn" directive is not allowed here in /etc/nginx/sites-enabled/
share|improve this question
if you get no answer, please ask this in the nginx-forum – that guy from over there Sep 11 '13 at 22:33
thanks sir, will do. – Wiggler Jtag Sep 11 '13 at 22:37

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.