Blame tests/regression/config/00-load-modsec.t
|
Packit Service |
384592 |
{
|
|
Packit Service |
384592 |
type => "config",
|
|
Packit Service |
384592 |
comment => "module loaded",
|
|
Packit Service |
384592 |
match_log => {
|
|
Packit Service |
384592 |
error => {
|
|
Packit Service |
384592 |
apache => [ qr/ModSecurity for Apache.* configured\./, 10 ],
|
|
Packit Service |
384592 |
nginx => [ qr/ModSecurity for nginx.* configured\./, 10 ],
|
|
Packit Service |
384592 |
},
|
|
Packit Service |
384592 |
},
|
|
Packit Service |
384592 |
},
|
|
Packit Service |
384592 |
{
|
|
Packit Service |
384592 |
type => "config",
|
|
Packit Service |
384592 |
comment => "minimal config",
|
|
Packit Service |
384592 |
conf => sub {
|
|
Packit Service |
384592 |
# Open the minimal conf file, substituting the
|
|
Packit Service |
384592 |
# relative log paths with full paths.
|
|
Packit Service |
384592 |
open(C, "<$ENV{DIST_ROOT}/modsecurity.conf-minimal") or die "$!\n";
|
|
Packit Service |
384592 |
(my $conf = join('', <C>)) =~ s#Log logs/#Log $ENV{TEST_SERVER_ROOT}/logs/#g;
|
|
Packit Service |
384592 |
close C;
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
return $conf;
|
|
Packit Service |
384592 |
},
|
|
Packit Service |
384592 |
match_log => {
|
|
Packit Service |
384592 |
error => {
|
|
Packit Service |
384592 |
apache => [ qr/ModSecurity for Apache.* configured\./, 10 ],
|
|
Packit Service |
384592 |
nginx => [ qr/ModSecurity for nginx.* configured\./, 10 ],
|
|
Packit Service |
384592 |
},
|
|
Packit Service |
384592 |
},
|
|
Packit Service |
384592 |
},
|