我们最近打算把nginx整体搬迁到ngx_openresty/bundle下,存在一个问题,就是我们原来的nginx的编译配置如下:其中加粗部分是自己定义的module.
chmod 755 ./configure
./configure --prefix=/usr/local \
--with-luajit \
--without-http_memcached_module \
--without-http_empty_gif_module \
--without-http_auth_basic_module \
--without-http_map_module \
--without-http_browser_module \
--without-mail_pop3_module \
--without-mail_imap_module \
--without-mail_smtp_module \
--http-proxy-temp-path=/tmp/ramdisk/proxy_temp \
--http-fastcgi-temp-path=/tmp/ramdisk/fastcgi_temp \
--http-uwsgi-temp-path=/tmp/ramdisk/uwsgi_temp \
--http-client-body-temp-path=/tmp/ramdisk/client_body_temp \
--http-scgi-temp-path=/tmp/ramdisk/scgi_temp \
--with-http_perl_module \
--add-module=bundle/nginx-1.4.3/src/http/modules/nginx_upstream_hash-0.3.1 \
--with-http_cast_mp4_plugin_module \
--with-http_cast_mp4_noplugin_module \
--with-http_cast_accesskey_module \
--with-http_cast_upstream_hash_module \
--with-http_cast_proxy_module \
--with-http_sub_module \
--with-http_stub_status_module \
--with-ipv6 \
--with-cc-opt='-D_FILE_OFFSET_BITS=64'
但是在ngx_openresty下配置的时候,加粗部分没编译进来,我看了ngx_openresty下的configure, 显然是不认识上面的加粗部分。因为configure是perl脚本,看的不是很清楚,应该要手工去里面添加。却折腾不成功,请教一下有没有其他好办法。
谢谢
运行结果:
[root@ppserver nginx]# ./sbin/nginx -V
nginx version: nginx/5.3
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --add-module=../ngx_devel_kit-0.2.19 --add-module=../echo-nginx-module-0.49 --add-module=../xss-nginx-module-0.04 --add-module=../ngx_coolkit-0.2rc1 --add-module=../set-misc-nginx-module-0.22 --add-module=../form-input-nginx-module-0.07 --add-module=../encrypted-session-nginx-module-0.03 --add-module=../srcache-nginx-module-0.23 --add-module=../ngx_lua-0.9.1 --add-module=../headers-more-nginx-module-0.23 --add-module=../array-var-nginx-module-0.03rc1 --add-module=../memc-nginx-module-0.13 --add-module=../redis2-nginx-module-0.10 --add-module=../redis-nginx-module-0.3.6 --add-module=../auth-request-nginx-module-0.2 --add-module=../rds-json-nginx-module-0.12 --add-module=../rds-csv-nginx-module-0.05 --with-ld-opt=-Wl,-rpath,/usr/local/luajit/lib --without-http_memcached_module --without-http_empty_gif_module --without-http_auth_basic_module --without-http_map_module --without-http_browser_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --http-proxy-temp-path=/tmp/ramdisk/proxy_temp --http-fastcgi-temp-path=/tmp/ramdisk/fastcgi_temp --http-uwsgi-temp-path=/tmp/ramdisk/uwsgi_temp --http-client-body-temp-path=/tmp/ramdisk/client_body_temp --http-scgi-temp-path=/tmp/ramdisk/scgi_temp --with-http_perl_module --with-http_ssl_module
--
Best Regards,
Harold Miao