mod_xsendfile のパッケージを作った([2012-09-23-1])ものの,
動作を確認していなかったので,
以下のようなファイルを用意して確認.
<?php
$path_to_somefile = '/home/fumi/samba-3.6.8.tar.gz';
$somefile = 'samba-3.6.8.tar.gz';
header("X-Sendfile: $path_to_somefile");
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"$somefile\"");
?>
php なのは
https://tn123.org/mod_xsendfile/
のサンプルが php だったから.
file が samba なのは,たまたまあったから.