Rate limiting
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s;
location / {
limit_req zone=mylimit burst=20 nodelay;
try_files $uri /index.html;
}
getting error
ERROR:
nginx: [emerg] "limit_req_zone" directive is not allowed here in /www/server/panel/vhost/nginx/salesapp.dartpos.com.conf:37
nginx: configuration file /www/server/nginx/conf/nginx.conf test failed