<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Одно дело собрать с нужным модулем,
      другое дело - запустить с ним. Модуль собран динамически, соотв.
      должен быть загружен через<a
        href="http://nginx.org/ru/docs/ngx_core_module.html#load_module">
        http://nginx.org/ru/docs/ngx_core_module.html#load_module</a></div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">15.09.2020 19:21, bagas пишет:<br>
    </div>
    <blockquote type="cite"
cite="mid:c75b09f761c717f06475b2b19f159fe1.NginxMailingListRussian@forum.nginx.org">
      <pre class="moz-quote-pre" wrap="">Добрый день.
Подскажите пожалуйста по проблеме как быть.
Установил 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: <a class="moz-txt-link-freetext" href="https://forum.nginx.org/read.php?21,289421,289421#msg-289421">https://forum.nginx.org/read.php?21,289421,289421#msg-289421</a>

_______________________________________________
nginx-ru mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx-ru@nginx.org">nginx-ru@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx-ru">http://mailman.nginx.org/mailman/listinfo/nginx-ru</a></pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>