installation method:
./configure --prefix=/your installation directory --add-module=/third-party module directory
to install the pagespeed module instance
Install nginx third-party modules without nginx installed
$ ./configure --prefix=/usr/local/nginx-1.4.1 \ --with-http_stub_status_module \
--with-http_ssl_module --with-http_realip_module \ --with-http_image_filter_module \ --add-module=../ngx_pagespeed-master --add-module=/第三方模块目录
$ make
$ make isntall
$ /usr/local/nginx-1.4.1/sbin/nginx
Install the nginx module if nginx is already installed
$ ./configure --prefix=/usr/local/nginx-1.4.1 \ --with-http_stub_status_module \ --with-http_ssl_module --with-http_realip_module \ --with-http_image_filter_module \ --add-module=../ngx_pagespeed-master
$ make
$ /usr/local/nginx-1.4.1/sbin/nginx -s stop
$ cp objs/nginx /usr/local/nginx/sbin/nginx
$ /usr/local/nginx-1.4.1/sbin/nginx is just one more step overwriting the nginx file.
To sum up, installing nginx to install a third-party module is actually to use --add-module to reinstall nginx once, instead of make install, directly overwrite the old nginx file with the objs/nginx file in the compilation directory. If you need to install multiple nginx first For third-party modules, you only need to specify a few more corresponding --add-modules.
Note: When recompiling, remember to add the previously compiled modules to the configure parameter together