Hi Igor thanks for the clarification. Looking forward to updated
examples/wiki for nginScript :)
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,269548,269559#msg-269559
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/
On 14 Sep 2016, at 05:35, George wrote:
> and examples in wiki for nginxScript for js_run
> https://www.nginx.com/resources/wiki/nginScript/#section-1-overview
The examples are obsolete, we will update them soon.
--
Igor Sysoev
http://nginx.com
___
On 14 Sep 2016, at 05:32, George wrote:
> 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
and examples in wiki for nginxScript for js_run
https://www.nginx.com/resources/wiki/nginScript/#section-1-overview
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,269548,269552#msg-269552
___
nginx mailing list
nginx@nginx.org
http://mailman
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: conf
sorry i meant from old example readme at
http://hg.nginx.org/njs/file/11d4d66851ed/README
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,269548,269550#msg-269550
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinf
On Tuesday 13 September 2016 22:14:32 George wrote:
> Tried compiling nginScript with nginx 1.11.4 as a dynamic module and the
> README github example at https://github.com/nginx/njs/blob/master/README
> gives me js_run unknown directive so looks like maybe didn't install
> correctly ?
[..]
There'
Tried compiling nginScript with nginx 1.11.4 as a dynamic module and the
README github example at https://github.com/nginx/njs/blob/master/README
gives me js_run unknown directive so looks like maybe didn't install
correctly ?
CentOS 7.2 64bit
nginx -V
nginx version: nginx/1.11.4
built by gcc 4.8