summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/httputils.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/httputils.php b/inc/httputils.php
index fdf453a8c..d6532720f 100644
--- a/inc/httputils.php
+++ b/inc/httputils.php
@@ -80,6 +80,8 @@ function http_sendfile($file) {
ob_end_clean();
exit;
}elseif($conf['xsendfile'] == 3){
+ // FS#2388 nginx just needs the relative path.
+ $file = DOKU_REL.substr($file, strlen(fullpath(DOKU_INC)) + 1);
header("X-Accel-Redirect: $file");
ob_end_clean();
exit;