Nginx – Installing Nginx “Headers More” module with YUM

nginx

I would really like to avoid the custom patching/compiling stuff as upgrades are a nightmare. On Nginx, which I've installed using yum install nginx18, I'd also like to enable the popular module: https://www.nginx.com/resources/wiki/modules/headers_more/

However, it's hard to find any instructions on how to enable the module in a yum-friendly way. Could someone please direct me to instructions, or mention the command? Thank you.

Best Answer

Sorry to give a not-answer, but I don't think there is a yum-friendly way to install headers_more (but it would be great if I were wrong on this!), unless you want to go through the effort of creating the nginx+headers_more RPM yourself (and someone has worked on this apparently: https://github.com/feedforce/nginx-headers-more-rpm), but you need to maintain it then, and you would be repeating the steps of patching and upgrading anyway.

On the other hand, building nginx from source is incredibly easy, as is patching it, and can be easily automated from a script, too. Nginx even allows for binary upgrading on the fly, so you can upgrade without downtime. Checking configuration arguments is easy too, so you don't even need to keep track of them for the next upgrade, just use nginx -V to see them.

Related Topic