When you need to use Dynamic Modules on Nginx, you must put at top of nginx.conf to get loaded, if not you get a message like "[emerg] "load_module" directive is specified too late in /etc/nginx/nginx.conf", so a quick fix to avoid config be rewrited is this little fix, so you can add dynamic modules with something like:
When you need to use Dynamic Modules on Nginx, you must put at top of nginx.conf to get loaded, if not you get a message like "[emerg] "load_module" directive is specified too late in /etc/nginx/nginx.conf", so a quick fix to avoid config be rewrited is this little fix, so you can add dynamic modules with something like:
ln -s /usr/share/nginx/modules-available/mod-custommodule.conf /etc/nginx.modules.d/custommodule.conf
And its all.