Question

I just recompiled nginx in order to add the HttpStripModule module. (i followed this: https://serverfault.com/a/279536/111652)

this is the configure options i used to make / make install:

--conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-debug --with-http_stub_status_module --with-http_flv_module --with-http_ssl_module --with-http_dav_module --with-http_gzip_static_module --with-http_realip_module --with-mail --with-mail_ssl_module --with-ipv6 --add-module=/usr/src/gnosek-nginx-upstream-fair-5f6a3b7 --add-module=/usr/src/mod_strip

and then as soon as make install was completed, i did a nginx restart and ran nginx -V and the output was:

--conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-debug --with-http_stub_status_module --with-http_flv_module --with-http_ssl_module --with-http_dav_module --with-http_gzip_static_module --with-http_realip_module --with-mail --with-mail_ssl_module --with-ipv6 --add-module=/build/buildd/nginx-0.7.65/modules/nginx-upstream-fair

As you can see... it didn't take my strip module. :(

what's going on here?

UPDATE: After all of this, I realized that my original install of nginx never was actually replaced.

This issue was solved by specifying the --sbin-path flag to the current location of nginx and then make installing. then the files were actually overwritten. After starting the nginx server now shows that it is the new version.

Was it helpful?

Solution

The module is probably included. Until recently, nginx's error logging could only print strings up to 2048 chars, so a really long ./configure string would get truncated when printed out.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top