From 185cb998e7c7f2509830bed4a9f2fe6179f77e7b Mon Sep 17 00:00:00 2001 From: sebres Date: Mon, 19 Mar 2018 14:38:47 +0100 Subject: [PATCH] make `prefregex` more precise in order to avoid catch the content for non failure lines --- config/filter.d/apache-noscript.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/filter.d/apache-noscript.conf b/config/filter.d/apache-noscript.conf index abc083a6..8858d635 100644 --- a/config/filter.d/apache-noscript.conf +++ b/config/filter.d/apache-noscript.conf @@ -19,11 +19,11 @@ before = apache-common.conf script = /\S*(?:php(?:[45]|[.-]cgi)?|\.asp|\.exe|\.pl) -prefregex = ^%(_apache_error_client)s .+$ +prefregex = ^%(_apache_error_client)s (?:(?:AH0(?:01(?:28|30)|1(?:264|071)): )|(?:(?:[Ff]ile|script|[Gg]ot) )).+$ -failregex = ^(?:(?:AH001(?:28|30): )?File does not exist|(AH01264: )?script not found or unable to stat):