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.

  • 3
    Very good question ! With Dedian Ubuntu you can apt-get install nginx-extras but I've got idea on how to do that with Centos.
    – jmcollin92
    Jun 25, 2016 at 8:58

3 Answers 3


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.

  • 2
    Building from source may be easy on a development machine, but it's not easy to do it from a base AMI on AWS with Chef or Puppet when the production system needs to start up quickly and is not allowed to contain gcc or make. Really kind of stinks this is not in epel or remi.
    – phpguru
    Dec 23, 2016 at 0:14
  • 1
    Thank you @suitablyawesome. That is a non-answer :) Sadly the truth is that CentOS land has no easy Yum way of doing this, the way Debian/Ubuntu communities have.
    – PKHunter
    Feb 13, 2017 at 4:49
  1. Download the latest webtatic-release rpm from http://repo.webtatic.com/yum/el7/x86_64/.
  2. Install webtatic-release rpm:

    # rpm -Uvh webtatic-release*rpm
  3. Install nginx1w rpm package:

    # yum --enablerepo=webtatic install nginx1w
  4. Module Headers

    # yum --enablerepo=webtatic install nginx1w-module-headers-more

try to convert the debian package with alien

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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