mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
test: Adds loading tests also to nginx.
It was trying to match "ModSecurity for Apache.* configured". This patch makes it expect for "ModSecurity for nginx.* configured" while nginx version is being used/tested.
This commit is contained in:
parent
795d6a64d2
commit
3cf1701794
@ -2,7 +2,10 @@
|
||||
type => "config",
|
||||
comment => "module loaded",
|
||||
match_log => {
|
||||
error => [ qr/ModSecurity for Apache.* configured\./, 10 ],
|
||||
error => {
|
||||
apache => [ qr/ModSecurity for Apache.* configured\./, 10 ],
|
||||
nginx => [ qr/ModSecurity for nginx.* configured\./, 10 ],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -18,6 +21,9 @@
|
||||
return $conf;
|
||||
},
|
||||
match_log => {
|
||||
error => [ qr/ModSecurity for Apache.* configured\./, 10 ],
|
||||
error => {
|
||||
apache => [ qr/ModSecurity for Apache.* configured\./, 10 ],
|
||||
nginx => [ qr/ModSecurity for nginx.* configured\./, 10 ],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user