mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +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:
@@ -2,7 +2,10 @@
|
|||||||
type => "config",
|
type => "config",
|
||||||
comment => "module loaded",
|
comment => "module loaded",
|
||||||
match_log => {
|
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;
|
return $conf;
|
||||||
},
|
},
|
||||||
match_log => {
|
match_log => {
|
||||||
error => [ qr/ModSecurity for Apache.* configured\./, 10 ],
|
error => {
|
||||||
|
apache => [ qr/ModSecurity for Apache.* configured\./, 10 ],
|
||||||
|
nginx => [ qr/ModSecurity for nginx.* configured\./, 10 ],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user