私はセント6で次のインストールをしています。
apache version :Apache 2.0
httpd-tools-2.2.15-28.el6.centos.x86_64
httpd-devel-2.2.15-28.el6.centos.x86_64
httpd-2.2.15-28.el6.centos.x86_64 .
httpd.conf に次の行を追加しました: LoadModule xsendfile_module /usr/lib64/httpd/modules/mod_xsendfile.so
および apache_get_modules(); ロードされた mod 配列に mod_xsendfile が表示されます...これで、.htaccess ファイルが含まれています。
<Files files.php>
XSendFile on
</Files>
そしてfiles.phpには
$path='fileliste.txt';
$documentMIME="text/plain";
$modules = apache_get_modules();
if (in_array("mod_xsendfile", $modules)) {
header ("X-Sendfile: ". $path);
header ("Content-Type: " . $documentMIME);
//header ('Content-Disposition: attachment; filename="textfile"');
}
すべてが正しいようです。それでもファイルは表示されません。