Skip to content
Snippets Groups Projects
Commit 446b5b59 authored by Dominik Eckelmann's avatar Dominik Eckelmann
Browse files

FS#2388 give relative path to sendfile on nginx

parent 40e0b444
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment