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?

  • 2
    It's really not a great idea to do this, especially if you're someone who doesn't already know how to do it. Compiling your own stuff comes with significant potential maintenance and security downfalls. If you need upload progress, consider something like Plupload to do it client-side. – ceejayoz Jan 23 '14 at 20:04
  • Already did it and it wasn't so hard, but now i learned how to compile from source or recompile RPM. – Alexander Kim Jan 27 '14 at 9:13
  • 2
    It's not so hard to compile. What's often hard is keeping up on patches and ensuring the custom process is well documented. – ceejayoz Jan 27 '14 at 15:24

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

  • 1
    I have successfully recompiled SRPM wasn't that hard. Thanks – Alexander Kim Jan 27 '14 at 9:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.