summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-08-20 12:48:23 +0300
committerAndrew Dolgov <[email protected]>2018-08-20 12:48:23 +0300
commita1b86519492c3416b0c848a16b11c92b31f125ff (patch)
tree51539efaf1da873f8e2c4ed0dcc7461dfac4e4a0 /include
parent2aef804f4b2cee7baf569f707eb74c27005d7daa (diff)
Revert "add (hidden) _NGINX_XACCEL_PREFIX which uses nginx X-Accel-Redirect to serve static files faster"
This reverts commit c5c3a0a2a8febaa2b1ebcae6c17ff4398a9da6c7.
Diffstat (limited to 'include')
-rwxr-xr-xinclude/functions.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/functions.php b/include/functions.php
index 8acea8ef4..fe0586678 100755
--- a/include/functions.php
+++ b/include/functions.php
@@ -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;
}