nginx 1.18 lua51

raven_kg на megaline.kg raven_kg на megaline.kg
Ср Сен 16 02:46:01 UTC 2020


Одно дело собрать с нужным модулем, другое дело - запустить с ним. 
Модуль собран динамически, соотв. должен быть загружен 
черезhttp://nginx.org/ru/docs/ngx_core_module.html#load_module 
<http://nginx.org/ru/docs/ngx_core_module.html#load_module>

15.09.2020 19:21, bagas пишет:
> Добрый день.
> Подскажите пожалуйста по проблеме как быть.
> Установил lua51 и указала поддержку в nginx lua.
> Создал виртуал хост, делаю проверку синтаксиса.
>
> Nginx ставил из портов.
>
>   nginx -t
> nginx: [emerg] unknown directive "content_by_lua_block" in
> /usr/local/etc/nginx/sites-enabled/test.jpeg_png:49
> nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
>
> Почему-то не видится директива content_by_lua_block.
>
> Система freebsd 11.3
>
> Nginx собран с
> --add-dynamic-module=/usr/ports/www/nginx/work/lua-nginx-module-0.10.17
>
> nginx -V
> nginx version: nginx/1.18.0
> built with OpenSSL 1.1.1g  21 Apr 2020
> TLS SNI support enabled
> configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I
> /usr/local/include' --with-ld-opt='-L /usr/local/lib'
> --conf-path=/usr/local/etc/nginx/nginx.conf
> --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid
> --error-log-path=/var/log/nginx/error.log --user=www --group=www
> --modules-path=/usr/local/libexec/nginx --with-file-aio
> --http-client-body-temp-path=/var/tmp/nginx/client_body_temp
> --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp
> --http-proxy-temp-path=/var/tmp/nginx/proxy_temp
> --http-scgi-temp-path=/var/tmp/nginx/scgi_temp
> --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp
> --http-log-path=/var/log/nginx/access.log --with-http_v2_module
> --with-http_addition_module --with-http_auth_request_module
> --with-http_gunzip_module --with-http_gzip_static_module
> --with-http_random_index_module --with-pcre --with-http_secure_link_module
> --with-http_slice_module --with-http_ssl_module --with-http_sub_module
> --with-cc-opt='-DNGX_HAVE_INET6=0 -I /usr/local/include'
> --without-mail_imap_module --without-mail_pop3_module
> --without-mail_smtp_module --with-threads --with-stream=dynamic
> --add-dynamic-module=/usr/ports/www/nginx/work/ngx_devel_kit-0.3.1
> --add-dynamic-module=/usr/ports/www/nginx/work/lua-nginx-module-0.10.17
>
> Софт в системе установлен такой:
>
> lua-resty-core-0.1.19              =
> lua-resty-lrucache-0.10            =
> lua51-5.1.5_9                      =
> lua51-luarocks-3.3.1               =
> luajit-openresty-2.1.20200102      =
>
> Posted at Nginx Forum: https://forum.nginx.org/read.php?21,289421,289421#msg-289421
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru на nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru


----------- следущая часть -----------
Вложение в формате HTML было извлечено…
URL: <http://mailman.nginx.org/pipermail/nginx-ru/attachments/20200916/cc7d3591/attachment.htm>


Подробная информация о списке рассылки nginx-ru