"js_import" is not allowed here, "js_content" is unknown
Sergey A. Osokin
osa at freebsd.org.ru
Thu Mar 31 18:51:08 UTC 2022
On Thu, Mar 31, 2022 at 08:09:25PM +0200, Sören Reinecke wrote:
> Hello NGINX community,
>
> nginx gives me the error messages
> - "js_import" is not allowed here
> and
> - "js_content" is unknown
>
> and don't know what I did wrong.
>
>
> I have the following NGINX config at '/etc/nginx/nginx.conf'
>
> load_module modules/ngx_stream_js_module.so;
You'd need to load another NJS module to support http:
load_module modules/ngx_http_js_module.so;
--
Sergey A. Osokin
More information about the nginx
mailing list