Re: nginScript + nginx 1.11.4, js_run unknown directive ?

2016-09-14 Thread George
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

Re: nginScript + nginx 1.11.4, js_run unknown directive ?

2016-09-14 Thread Igor Sysoev
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

Re: nginScript + nginx 1.11.4, js_run unknown directive ?

2016-09-14 Thread Igor Sysoev
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 >

Re: nginScript + nginx 1.11.4, js_run unknown directive ?

2016-09-13 Thread George
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

Re: nginScript + nginx 1.11.4, js_run unknown directive ?

2016-09-13 Thread George
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:

Re: nginScript + nginx 1.11.4, js_run unknown directive ?

2016-09-13 Thread George
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

Re: nginScript + nginx 1.11.4, js_run unknown directive ?

2016-09-13 Thread Valentin V. Bartenev
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 ? [..]

nginScript + nginx 1.11.4, js_run unknown directive ?

2016-09-13 Thread George
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