Use X-Accel-Redirect in log.php output

This commit is contained in:
Daniel Winzen
2017-12-03 12:48:37 +01:00
parent 99ccbdccfe
commit a9fd1b658c
3 changed files with 11 additions and 8 deletions

View File

@ -23,6 +23,5 @@ header('Pragma: no-cache');
header('Cache-Control: no-cache, no-store, must-revalidate, max-age=0');
header('Expires: 0');
if(file_exists("/var/log/nginx/{$type}_$user[onion].onion.log$old")){
readfile("/var/log/nginx/{$type}_$user[onion].onion.log$old");
header("X-Accel-Redirect: /nginx/{$type}_$user[onion].onion.log$old");
}
?>