File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 comment => " module loaded" ,
44 match_log => {
55 error => {
6+ apache_v3 => [ qr/ ModSecurity-Apache/ , 10 ],
67 apache => [ qr/ ModSecurity for Apache.* configured\./ , 10 ],
78 nginx => [ qr/ ModSecurity for nginx.* configured\./ , 10 ],
89 },
2223 },
2324 match_log => {
2425 error => {
26+ apache_v3 => [ qr/ ModSecurity-Apache/ , 10 ],
2527 apache => [ qr/ ModSecurity for Apache.* configured\./ , 10 ],
2628 nginx => [ qr/ ModSecurity for nginx.* configured\./ , 10 ],
2729 },
Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ if ($HTTPD eq "\@APXS_HTTPD\@") {
5151
5252$SIG{TERM} = $SIG{INT} = \&handle_interrupt;
5353
54- my $platform = "apache";
54+ my $platform = "apache_v3";
55+ my $platform_alternative = "apache";
5556
5657my %opt;
5758getopts('A:E:D:C:T:H:a:p:dvh', \%opt);
@@ -236,6 +237,9 @@ sub runfile {
236237 if ($m->{$platform}) {
237238 $m = $m->{$platform};
238239 }
240+ elsif ($m->{$platform_alternative}) {
241+ $m = $m->{$platform_alternative};
242+ }
239243 else {
240244 my $ap = join(", ", keys %{$m});
241245 msg("Warning: trying to match: $mtype. Nothing " .
You can’t perform that action at this time.
0 commit comments