I am making the following statement in the Nginx conf:
js_import http.js;
But it seems to give me unknown directive "js_import"
I have verified whether the njs is installed. I can seem to get into the cli. Version of njs is 0.3.9
The below statement seems to be working and is placehttp block:
js_include http.js
This also seem to work and is placed in the server block inside http block:
js_content hello
Nginx seems to be the latest version.
I cannot seems to find what I am missing here.
Any help is greatly appreciated.