I have problems to use "mod_xsendfile".
It has been installed and configured on my VPS.
I use this in my "download.php" file to force downloads:
header('Content-Disposition: attachment; filename='.$filename);
The file is downloaded correctly if I use "normal" download methods (readfile etc.).
By using mod_xsendfile I only get 2KB files.
$filepath is correct (worked with old download code, no mod_xsendfile).
This has been added to httpd.conf:
# Turn it on
# Whitelist a target directory.
The videos/files are located in this directory:
I'm so lost, have used hours trying to find the error, no success :(