From 87e280895ffb52a74e5cf5ddd2410ecf23ad7457 Mon Sep 17 00:00:00 2001 From: Romain Dessort Date: Fri, 7 Jul 2017 16:34:46 -0400 Subject: [PATCH] Allow use of env= in Allow from directives. --- evocheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index f7978d1..6d20532 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -387,7 +387,7 @@ if [ -e /etc/debian_version ]; then if [ "$IS_APACHEIPINALLOW" = 1 ]; then # Note: Replace "exit 1" by "print" in Perl code to debug it. is_installed apache2.2-common && \ - (grep -IrE "^[^#] *(Allow|Deny) from" /etc/apache2/ |grep -iv "from all" |perl -ne 'exit 1 unless (/from( [\da-f:.\/]+)+$/i)' || echo 'IS_APACHEIPINALLOW FAILED!') + (grep -IrE "^[^#] *(Allow|Deny) from" /etc/apache2/ |grep -iv "from all" |grep -iv "env=" |perl -ne 'exit 1 unless (/from( [\da-f:.\/]+)+$/i)' || echo 'IS_APACHEIPINALLOW FAILED!') fi # Check if default Apache configuration file for munin is absent (or empty or commented).