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 #418

Merged
merged 2 commits into from
Feb 25, 2017
Merged
Show file tree
Hide file tree
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
28 changes: 28 additions & 0 deletions Generic_Page_Dashboard_View.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,34 @@
float:left;
margin-right:10px;
}

@media only screen and (max-device-width: 480px) {
#w3tc-dashboard-widgets #postbox-container-left {
margin-right: 0px;
}
#w3tc-dashboard-widgets {
min-width: auto;
}
#postbox-container-right {
width: 100%;
white-space: nowrap;
float: left;
margin-left: 0px;
}
#w3tc-dashboard-widgets {
background: none;
}
#w3tc-dashboard-widgets #normal-sortables .postbox {
width: 100%;
}
.w3tc_generic_widgetservice_label {
display: inline;
}
#cdn_maxcdn_authorization_key {
width: 100%;
}
}

/**
* HiDPI Displays
*/
Expand Down
25 changes: 21 additions & 4 deletions PgCache_Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -1188,10 +1188,27 @@ private function rules_cache_generate_apache( $config ) {
if ( $compatibility ) {
$rules .= "Options -MultiViews\n";

// 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 .= "</Files>\n";
// 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_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_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";

if ( !$etag ) {
$rules .= "FileETag None\n";
Expand Down