config # Nginx
lib
example_or.lua # FFI Nginx C Lua
ngx_http_example_or_module.c # Nginx C
t
example_or.t #
OpenResty ./configure
--add-module=/path/to/ngx_http_example_or_module
OpenResty bundle/nginx-*
Nginx ./configure
--add-dynamic-module=/path/to/your/module
OpenResty OpenResty Nginx ABI ssl
./configure --with-cc-opt='-I/usr/local/Cellar/pcre/8.39/include/' --with-ld-opt='-L/usr/local/Cellar/pcre/8.39/lib' --with-openssl=/Users/lzx/lib/openssl-1.0.2h --with-http_realip_module --with-http_ssl_module --add-dynamic-module=/path/to/ngx_http_example_or_module
make modules
load_module /path/to/objs/ngx_http_example_or_module.so;
Nginx test-nginx
prove -r t