unknown directive "js_include"

Dmitry Volyntsev xeioex at nginx.com
Thu Apr 12 14:22:07 UTC 2018



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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
> 


More information about the nginx mailing list