nginx + lua broken
Станислав
server_inc на list.ru
Пт Июн 10 06:17:30 UTC 2016
Такое есть:
> # ls -la /usr/local/libexec/nginx/ngx_http_lua_module.so
> -r-xr-xr-x 1 root wheel 336032 10 июн 07:59
> /usr/local/libexec/nginx/ngx_http_lua_module.so
# pkg info -l luajit-2.0.4
luajit-2.0.4:
/usr/local/bin/luajit
/usr/local/bin/luajit-2.0.4
/usr/local/include/luajit-2.0/lauxlib.h
/usr/local/include/luajit-2.0/lua.h
/usr/local/include/luajit-2.0/lua.hpp
/usr/local/include/luajit-2.0/luaconf.h
/usr/local/include/luajit-2.0/luajit.h
/usr/local/include/luajit-2.0/lualib.h
/usr/local/lib/libluajit-5.1.a
/usr/local/lib/libluajit-5.1.so
/usr/local/lib/libluajit-5.1.so.2
/usr/local/lib/libluajit-5.1.so.2.0.4
/usr/local/libdata/pkgconfig/luajit.pc
/usr/local/man/man1/luajit.1.gz
/usr/local/share/luajit-2.0.4/jit/bc.lua
/usr/local/share/luajit-2.0.4/jit/bcsave.lua
/usr/local/share/luajit-2.0.4/jit/dis_arm.lua
/usr/local/share/luajit-2.0.4/jit/dis_mips.lua
/usr/local/share/luajit-2.0.4/jit/dis_mipsel.lua
/usr/local/share/luajit-2.0.4/jit/dis_ppc.lua
/usr/local/share/luajit-2.0.4/jit/dis_x64.lua
/usr/local/share/luajit-2.0.4/jit/dis_x86.lua
/usr/local/share/luajit-2.0.4/jit/dump.lua
/usr/local/share/luajit-2.0.4/jit/v.lua
/usr/local/share/luajit-2.0.4/jit/vmdef.lua
# nginx pkg info -l nginx
nginx-1.10.1,2:
/usr/local/etc/nginx/fastcgi_params-dist
/usr/local/etc/nginx/koi-utf
/usr/local/etc/nginx/koi-win
/usr/local/etc/nginx/mime.types-dist
/usr/local/etc/nginx/nginx.conf-dist
/usr/local/etc/nginx/scgi_params-dist
/usr/local/etc/nginx/uwsgi_params-dist
/usr/local/etc/nginx/win-utf
/usr/local/etc/rc.d/nginx
/usr/local/libexec/nginx/ngx_http_lua_module.so
/usr/local/libexec/nginx/ngx_stream_module.so
/usr/local/man/man8/nginx.8.gz
/usr/local/sbin/nginx
/usr/local/share/licenses/nginx-1.10.1,2/BSD2CLAUSE
/usr/local/share/licenses/nginx-1.10.1,2/LICENSE
/usr/local/share/licenses/nginx-1.10.1,2/catalog.mk
/usr/local/www/nginx-dist/50x.html
/usr/local/www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
/usr/local/www/nginx-dist/index.html
По сути я собрал nginx из портов с опцией LUA на чистой FreeBSD 10.3. На
предыдущей машинке работало
> Hi, а модуль lua на месте?
>
> 10 июня 2016 г. 8:32 пользователь "Станислав" <server_inc at list.ru
> <mailto:server_inc at list.ru>> написал:
>
> Здравствуйте,
>
> Подскажите пожалуйста чего это не работает:
>
> # nginx -t
> nginx: [emerg] unknown directive "content_by_lua" in
> /usr/local/etc/nginx/virtual/kagdila.rooty.name.conf:51
> nginx: configuration file /usr/local/etc/nginx/nginx.conf test
> failed
>
>
> Nginx был собран с lua:
>
> # nginx -V
> nginx version: nginx/1.10.1
> built with OpenSSL 1.0.2h 3 May 2016
> 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 --with-ipv6
> --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_addition_module --with-http_auth_request_module
> --with-http_dav_module --with-http_flv_module
> --with-http_gzip_static_module --with-http_gunzip_module
> --with-http_mp4_module --with-http_random_index_module
> --with-http_realip_module --with-http_secure_link_module
> --with-http_slice_module --with-http_stub_status_module
> --with-http_sub_module
> --add-module=/usr/ports/www/nginx/work/ngx_devel_kit-0.2.19
> --add-dynamic-module=/usr/ports/www/nginx/work/lua-nginx-module-0.10.5
> --with-pcre --with-http_v2_module --with-stream=dynamic
> --with-stream_ssl_module --with-threads --with-http_ssl_module
>
>
> # pkg info nginx | grep -i lua
> LUA : on
> libluajit-5.1.so.2
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org <mailto:nginx-ru at nginx.org>
> http://mailman.nginx.org/mailman/listinfo/nginx-ru
>
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-ru/attachments/20160609/81cf7c2f/attachment.html>
Подробная информация о списке рассылки nginx-ru