OpenResty

install to FreeBSD

devel/gmake
security/openssl
devel/pcre
wget https://openresty.org/download/openresty-1.13.6.1.tar.gz
tar xzvf ngx_openresty-1.5.8.1.tar.gz
cd ngx_openresty-1.5.8.1/
./configure --with-luajit
make
make install
./configure --prefix=/opt/openresty 
--with-luajit 
--without-http_redis2_module 
--with-http_iconv_module 
--with-http_postgres_module 
-j2
--help to see more options