nginScript + nginx 1.11.4, js_run unknown directive ?

George nginx-forum at forum.nginx.org
Wed Sep 14 02:32:10 UTC 2016


even


location /njs {
    js_run "
        var res;
        res = $r.response;
        res.status = 200;
        res.send('Hello World!');
        res.finish();
    ";
}

gives an error

nginx -t 
nginx: [emerg] unknown directive "js_run" in
/usr/local/nginx/conf/conf.d/virtual.conf:36
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,269548,269551#msg-269551



More information about the nginx mailing list