2

We have a limitation on the server to only install Nginx via DNF. This currently (as of this date of writing) installs Nginx v1.18.0. We cannot compile our own Nginx.

I understand that with this we cannot install "static modules" because that requires the whole of Nginx to be reinstalled. But I'd like to check how we can install the dynamic modules:

  1. Nginx More Headers
  2. Nginx Brotli
  3. Nginx Security Headers

Most lazy suggestions on blogs etc have instructions to either compile Nginx itself, or they're just plain erroneous. Welcome any pointers. I searched here and couldn't find a question about these specific modules.

Edit: just to list the nginx modules that are in fact available in my repos currently:

# dnf search nginx-*
Last metadata expiration check: 0:26:34 ago on Mon 04 Jan 2021 10:56:18 PM EST.
============ Name Matched: nginx-* =========
nginx-all-modules.noarch : A meta package that installs all available Nginx modules
nginx-filesystem.noarch : The basic directory layout for the Nginx server
nginx-mimetypes.noarch : MIME type mappings for nginx
nginx-mod-http-image-filter.x86_64 : Nginx HTTP image filter module
nginx-mod-http-perl.x86_64 : Nginx HTTP perl module
nginx-mod-http-xslt-filter.x86_64 : Nginx XSLT module
nginx-mod-mail.x86_64 : Nginx mail modules
nginx-mod-stream.x86_64 : Nginx stream modules

Thanks!

9
  • 1
    I don't have access to a linux machine to check right this moment, but are any of those modules available in your package repos? They will usually be named something like nginx-thing, so try searching for, say, nginx-brotli.
    – Karu
    Jan 5, 2021 at 4:16
  • 2
    Thank you Karu. I've added the list available to the question (for easier to read formatting). My three desired ones are not in the usual repos.
    – PKHunter
    Jan 5, 2021 at 4:24
  • Darn, thought this might be easy :) What Linux distro is this?
    – Karu
    Jan 5, 2021 at 4:29
  • 1
    Fedora 33 or CentOS 8. We have two where we'd like to install this. I'm hoping all these RH derivatives have similar ways? DNF/YUM works in both.
    – PKHunter
    Jan 5, 2021 at 4:30
  • 1
    Thanks, interesting resource, but none of them are listed there.
    – PKHunter
    Jan 6, 2021 at 0:19

0

You must log in to answer this question.

Browse other questions tagged .