Nginx – How to add module to nginx on CentOS 6

apache-2.2centosnginxupload

I have nginx 1.4.4 as reverse proxy and apache as backend. My question is – how to add modules to nginx?

I need this module http://wiki.nginx.org/HttpUploadProgressModule

checked nginx -V i don't have this module

I read that i need to recompile nginx with a new module. How to do that? How to save old nginx config files so i won't mess up my webserver?

Best Answer

I agree with ceejayoz in his comment above that you're taking a big step if you move off RPM and start compiling on your own. Migrating might be a really big pain in the butt. Once you do it, though, you have much more freedom in the future. If you think you might use other modules in the future, then it might be the right step.

See this question for help migrating off RPM builds on Centos 6: https://stackoverflow.com/questions/2568784/can-this-package-be-recompiled