0

I have installed nginx and modsec roughly following this tutorial https://www.linuxcapable.com/how-to-install-modsecurity-with-nginx-on-ubuntu-20-04/.

After a couple of months working perfectly I am now getting this error:

nginx: [emerg] module "/usr/share/nginx/modules/ngx_http_modsecurity_module.so" version 1021004 instead of 1021006 in /etc/nginx/nginx.conf:5
nginx: configuration file /etc/nginx/nginx.conf test failed

I haven't rebuilt the nginx connector module yet, but I expect this is the problem and once I have rebuilt and installed the module, nginx will restart again without a problem. UPDATE: Rebuilt the module and all is working well.

So my question is: How to manage this situation on a production server?. What I mean is when the system updates & upgrades, at some point nginx version will be ahead of the nginx modsec connector module version and the server will not reload....and therefore the server will stop working (as happened just now).

0 Answers0