Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

Deprecated the "Allow, Deny, and Order" directives #24

Merged
merged 1 commit into from
Aug 18, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/W3/PgCacheAdminEnvironment.php
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,12 @@ 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 .= " Allow from all\n";
$rules .= " <IfModule mod_authz_host.c>\n";
$rules .= " Require all granted\n";
$rules .= " </IfModule>\n";
$rules .= " <IfModule !mod_authz_host.c>\n";
$rules .= " Allow from all\n";
$rules .= " </IfModule>\n";
$rules .= "</Files>\n";

if (!$etag) {
Expand Down