Previously we built nginx with all modules, except those that required
extra libraries. With dynamic modules it is possible to build them as
the separate packages and nginx main package will not have extra
dependences.
For nginx 1.9.12 we build additional packages with xslt, image-filter
and geoip modules. It is possible to install, for example, image filter
module on RHEL/CentOS with command:
% yum install nginx-module-image-filter
or on Ubuntu/Debian with command:
% apt-get install nginx-module-image-filter
then to enable module it is necessary add load_module directive:
Great news! :o)
Would it possible to add a file in some conf.d containing the
load_module
directive so a package management system could automatically configure
nginx to automatically load the module on the next reload?
That is standard practice for some other technologies.
Great news! :o)
Would it possible to add a file in some conf.d containing the load_module
directive so a package management system could automatically configure nginx to
automatically load the module on the next reload?
It has no sense as nginx has no conditional configuration like
if(some module)
module_directive1
module_directive2
etc.
Module specific directives will result in error on nginx start if there
will be no loaded module.