From 6b6efc2fc61821baeff11ad2e64498ce518cbd9d Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Tue, 1 Jan 2019 13:54:36 +0100 Subject: [PATCH] Logs are stored outside chroot - don't check existence and let nginx handle it --- var/www/html/log.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/var/www/html/log.php b/var/www/html/log.php index b9fa60f..001ad63 100644 --- a/var/www/html/log.php +++ b/var/www/html/log.php @@ -22,6 +22,4 @@ header("Content-disposition: filename=\"$type.log\""); 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[system_account].log$old")){ - header("X-Accel-Redirect: /nginx/{$type}_$user[system_account].log$old"); -} +header("X-Accel-Redirect: /nginx/{$type}_$user[system_account].log$old");