Eugeny / ajenti-v

Virtual Hosting addon for Ajenti
ajenti.org/#product-ajenti-v
MIT License
225 stars 80 forks source link

Quick fix to allow dynamic modules on nginx #281

Closed vnetmx closed 6 years ago

vnetmx commented 6 years ago

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.