These config is using luascripting. So you have to compile nginx with luascripting.
Or if you are using install with apt:
`sudo apt-get install nginx nginx-extras`