Now i see - its because i placed it on top level - now it works. But actually this error message should be changed. When i place directive in wrong place (for example limit_zone inside location. ) - I used to get messages "this directive is not allowed here" - not an "uknown directive". Posted at Nginx Forum: http://forum.nginx.org/read.php?2,228924,228929#msg-228929