-
Notifications
You must be signed in to change notification settings - Fork 302
Closed
Labels
Description
Hi, May I know whether the connector currently accepts SecRuleRemoveByTag?
With the current configuration,
modsecurity on;
modsecurity_rules_file /etc/nginx/modsecurity.conf;
modsecurity_rules '
SecRuleRemoveByTag "OWASP_CRS/WEB_ATTACK/SQL_INJECTION"
';
I get this error
# nginx -t -c /etc/nginx/nginx.conf
nginx: [emerg] "modsecurity_rules" directive Rules error. File: <<reference missing or not informed>>. Line: 2. Column: 55. syntax error, unexpected QUOTATION_MARK in /etc/nginx/nginx.conf:26
nginx: configuration file /etc/nginx/nginx.conf test failed
Line 26 refers to the SecRuleRemoveByTag line, and column 55 is the last character of the line, which happens to be end quote.