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

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.