Revert "add (hidden) _NGINX_XACCEL_PREFIX which uses nginx X-Accel-Redirect to serve static files faster"

This reverts commit c5c3a0a2a8.
This commit is contained in:
Andrew Dolgov 2018-08-20 12:48:23 +03:00
parent 2aef804f4b
commit a1b8651949
1 changed files with 1 additions and 7 deletions

View File

@ -2619,13 +2619,7 @@
$stamp = gmdate("D, d M Y H:i:s", filemtime($filename)) . " GMT";
header("Last-Modified: $stamp", true);
if (defined('_NGINX_XACCEL_PREFIX') && _NGINX_XACCEL_PREFIX) {
header("X-Accel-Redirect: " . _NGINX_XACCEL_PREFIX . "/" . $filename);
return false;
} else {
return readfile($filename);
}
return readfile($filename);
} else {
return false;
}