Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Nginx limit_conn in IF statement?

$
0
0
How to make possible something like this?

location /download/ {
limit_conn addr 2;

if ($arg_C) {
limit_conn addr 1;
}
}

Gives me an error:
Restarting nginx: nginx: [emerg] "limit_conn" directive is not allowed here in /etc/nginx/sites-enabled/www.mypage.com:60

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>