title: PHP: x-sendfile for litespeed
body: <p>I use below code for apache :</p>
  
  <pre><code>$file = 'a.mp3';
  $mime = mime_content_type($file);
  header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
  header('Cache-Control: post-check=0, pre-check=0', false);
  header('Pragma: no-cache');
  header('Content-type: ' . $mime);
  header('Content-Length: ' . filesize($file));
  header('X-Sendfile: ' . $file);
  exit();
  </code></pre>
  
  <p>But new server manager asked me change it to litespeed version</p>
  
  <p>How ?</p>