Logs are stored outside chroot - don't check existence and let nginx handle it

This commit is contained in:
Daniel Winzen
2019-01-01 13:54:36 +01:00
parent 55bc8cd757
commit 6b6efc2fc6

View File

@ -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");