diff --git a/lib/W3/PgCacheAdminEnvironment.php b/lib/W3/PgCacheAdminEnvironment.php index 008108e..4a8e2e2 100644 --- a/lib/W3/PgCacheAdminEnvironment.php +++ b/lib/W3/PgCacheAdminEnvironment.php @@ -1141,11 +1141,23 @@ private function rules_cache_generate_apache($config) { // allow to read files by apache if they are blocked at some level above $rules .= "\n"; - $rules .= " \n"; - $rules .= " Require all granted\n"; + $rules .= " \n"; + $rules .= " \n"; + $rules .= " Order Allow,Deny\n"; + $rules .= " Allow from All\n"; + $rules .= " \n"; + $rules .= " = 2.4>\n"; + $rules .= " Require all granted\n"; + $rules .= " \n"; $rules .= " \n"; - $rules .= " \n"; - $rules .= " Allow from all\n"; + $rules .= " \n"; + $rules .= " \n"; + $rules .= " Order Allow,Deny\n"; + $rules .= " Allow from All\n"; + $rules .= " \n"; + $rules .= " \n"; + $rules .= " Require all granted\n"; + $rules .= " \n"; $rules .= " \n"; $rules .= "\n";