'configure: error: unrecognized option: `--add-dynamic-module=/usr/local/src/ModSecurity-nginx'

I am trying to install mod security on Ubuntu 20.04 with nginx. when I execute this command: ./configure --with-compat --add-dynamic-module=/usr/local/src/ModSecurity-nginx I get this error: configure: error: unrecognized option: --add-dynamic-module=/usr/local/src/ModSecurity-nginx' Try ./configure --help' for more information j'ai suivi ce site web: https://www.linuxcapable.com/how-to-install-modsecurity-with-nginx-on-ubuntu-20-04/



Solution 1:[1]

More information will be helpful. Are you in the right directory? You need to run that ./configure ... at the nginx source directory, not in the connector directory.

If you don't need to compile and just want an updated version, maybe try using the maintained repo from https://modsecurity.digitalwave.hu/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Felipe