I found that the documentation for the separate ModSecurity is a bit lacking in detail.
Given references to modsecurity_rules_file in the configuration example, I assume the module is some version of https://github.com/owasp-modsecurity/ModSecurity-nginx.
It is unclear to me if it is required to have multiple modsecurity on; directives in the configuration, like different servers or if it is shared.
When I enabled modsecurity for different servers the rules seem to be loaded for every instance. When the process is reloaded there seem to be some left over memory usage.
I found that the documentation for the separate ModSecurity is a bit lacking in detail.
Given references to modsecurity_rules_file in the configuration example, I assume the module is some version of https://github.com/owasp-modsecurity/ModSecurity-nginx.
It is unclear to me if it is required to have multiple
modsecurity on;directives in the configuration, like different servers or if it is shared.When I enabled modsecurity for different servers the rules seem to be loaded for every instance. When the process is reloaded there seem to be some left over memory usage.