Closed dvershinin closed 7 years ago
Hi @dvershinin,
You need to have the SecRemoteRules
inside a configuration file and that configuration file should be referenced at Nginx conf, using the command: ModSecurityConfig
.
Another option is to use the ModSecurity-nginx connector - https://github.com/SpiderLabs/ModSecurity-nginx
I'm compiling nginx with ModSecurity from nginx_refactoring branch. During compilation / linking I see indication that remote rules are supported, e.g.:
However, when adding
SecRemoteRules some-key https://www.yourserver.com/plain-text-rules.txt;
nginx fails to start and I get inerror.log
:It's been couple days of trying different configure options but nothing makes the error go away. I need:
SecRemoteRules
work (obviously)Configure for ModSecurity was run like this:
Relevant configure output below: