无法将ngx_http_sub_module包含在--with-http_sub_module
我正在使用
编译(openresty bundle https://github.com/openresty/ngx_openresty)./ configure --with-luajit --with-http_sub_module
请 make install
在我的配置文件中我调用了sub_filter, 并在启动nginx
时收到错误消息:unknown directive“sub_filter”nginx -V不显示模块列表中的sub_module:
/ usr / local / openresty / nginx / sbin / nginx -V
nginx version: openresty/1.7.7.1
built by gcc 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
TLS SNI support enabled
configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt='-I/tmp/ngx_openresty-1.7.7.1/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1 -O2' --add-module=../ngx_devel_kit-0.2.19 --add-module=../echo-nginx-module-0.57 --add-module=../xss-nginx-module-0.04 --add-module=../ngx_coolkit-0.2rc2 --add-module=../set-misc-nginx-module-0.27 --add-module=../form-input-nginx-module-0.10 --add-module=../encrypted-session-nginx-module-0.03 --add-module=../srcache-nginx-module-0.28 --add-module=../ngx_lua-0.9.13 --add-module=../ngx_lua_upstream-0.02 --add-module=../headers-more-nginx-module-0.25 --add-module=../array-var-nginx-module-0.03 --add-module=../memc-nginx-module-0.15 --add-module=../redis2-nginx-module-0.11 --add-module=../redis-nginx-module-0.3.7 --add-module=../rds-json-nginx-module-0.13 --add-module=../rds-csv-nginx-module-0.05 --with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib -L/tmp/ngx_openresty-1.7.7.1/build/luajit-root/usr/local/openresty/luajit/lib' --with-http_ssl_module
我在配置文件中看到:
直接从nginx继承的选项
- with-http_sub_module enable ngx_http_sub_module