Welcome! Log In Create A New Profile

Advanced

unknown directive "js_include"

Posted by Dineshkumar 
Dineshkumar
unknown directive "js_include"
April 12, 2018 04:20PM
Hi All,

Im getting the following error when using nginscript module in RHEL 5
server.
nginx: [emerg] unknown directive "js_include" in /etc/nginx/nginx.conf:13

Installed the nginx using the following RPM
https://nginx.org/packages/rhel/5/x86_64/RPMS/nginx-1.10.0-1.el5.ngx.x86_64.rpm

Installed the nginx-module-njs module using the following RPM
https://nginx.org/packages/rhel/5/x86_64/RPMS/nginx-module-njs-1.10.0.0.0.20160414.1c50334fbea6-1.el5.ngx.x86_64.rpm

Please let me know if there are any alternatives to mitigate this issue.


Regards,
Dinesh

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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Dmitry Volyntsev
Re: unknown directive "js_include"
April 12, 2018 04:30PM
On 12.04.2018 17:17, Dineshkumar wrote:
> Hi All,
>
> Im getting the following error when using nginscript module in RHEL 5
> server.
> nginx: [emerg] unknown directive "js_include" in /etc/nginx/nginx.conf:13
>
> Installed the nginx using the following RPM
> https://nginx.org/packages/rhel/5/x86_64/RPMS/nginx-1.10.0-1.el5.ngx.x86_64.rpm
>
> Installed the nginx-module-njs module using the following RPM
> https://nginx.org/packages/rhel/5/x86_64/RPMS/nginx-module-njs-1.10.0.0.0.20160414.1c50334fbea6-1.el5.ngx.x86_64.rpm
>
> Please let me know if there are any alternatives to mitigate this issue.
>

Did you enabled the module in the nginx config?

http://nginx.org/en/docs/ngx_core_module.html#load_module

>
> Regards,
> Dinesh
>
> Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279415,279415#msg-279415
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Dineshkumar
Re: unknown directive "js_include"
April 12, 2018 04:30PM
Hi Dmitry,

The module has been loaded in the nginx.conf file using the following
load_module modules/ngx_http_js_module.so;

and the compile module files are available in the path as well.

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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Dmitry Volyntsev
Re: unknown directive "js_include"
April 12, 2018 04:50PM
On 12.04.2018 17:28, Dineshkumar wrote:
> Hi Dmitry,
>
> The module has been loaded in the nginx.conf file using the following
> load_module modules/ngx_http_js_module.so;
>
> and the compile module files are available in the path as well.

Please note that RHEL5 packets are outdated (js_include was not
available back then). I would recommend using RHEL 6 or 7.


>
> Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279415,279417#msg-279417
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login