Skip to content
This repository has been archived by the owner on Jul 3, 2022. It is now read-only.

Commit

Permalink
fix Page Cache Compatibility Mode, issue szepeviktor#39 (szepeviktor#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
nigrosimone authored Sep 2, 2016
1 parent 592e36a commit 23295e4
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions lib/W3/PgCacheAdminEnvironment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= "<Files ~ \"\.(html|html_gzip|xml|xml_gzip)$\">\n";
$rules .= " <IfModule mod_authz_host.c>\n";
$rules .= " Require all granted\n";
$rules .= " <IfModule mod_version.c>\n";
$rules .= " <IfVersion < 2.4>\n";
$rules .= " Order Allow,Deny\n";
$rules .= " Allow from All\n";
$rules .= " </IfVersion>\n";
$rules .= " <IfVersion >= 2.4>\n";
$rules .= " Require all granted\n";
$rules .= " </IfVersion>\n";
$rules .= " </IfModule>\n";
$rules .= " <IfModule !mod_authz_host.c>\n";
$rules .= " Allow from all\n";
$rules .= " <IfModule !mod_version.c>\n";
$rules .= " <IfModule !mod_authz_core.c>\n";
$rules .= " Order Allow,Deny\n";
$rules .= " Allow from All\n";
$rules .= " </IfModule>\n";
$rules .= " <IfModule mod_authz_core.c>\n";
$rules .= " Require all granted\n";
$rules .= " </IfModule>\n";
$rules .= " </IfModule>\n";
$rules .= "</Files>\n";

Expand Down

0 comments on commit 23295e4

Please sign in to comment.