mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
30 lines
727 B
Perl
30 lines
727 B
Perl
{
|
|
type => "config",
|
|
comment => "module loaded",
|
|
match_log => {
|
|
error => {
|
|
apache => [ qr/ModSecurity for Apache.* configured\./, 10 ],
|
|
nginx => [ qr/ModSecurity for nginx.* configured\./, 10 ],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
type => "config",
|
|
comment => "minimal config",
|
|
conf => sub {
|
|
# Open the minimal conf file, substituting the
|
|
# relative log paths with full paths.
|
|
open(C, "<$ENV{DIST_ROOT}/tests/modsecurity.conf-minimal") or die "$!\n";
|
|
(my $conf = join('', <C>)) =~ s#Log logs/#Log $ENV{TEST_SERVER_ROOT}/logs/#g;
|
|
close C;
|
|
|
|
return $conf;
|
|
},
|
|
match_log => {
|
|
error => {
|
|
apache => [ qr/ModSecurity for Apache.* configured\./, 10 ],
|
|
nginx => [ qr/ModSecurity for nginx.* configured\./, 10 ],
|
|
},
|
|
},
|
|
},
|