mod_xsendfile for Apache2/Apache2.2 下载地址:https://tn123.org/mod_xsendfile/
1、下载完之后 把对应的mod_xsendfile.so放到mod下
2、在httpd_conf中把对应的module打开,
LoadModule xsendfile_module modules/mod_xsendfile.so
3、这时在phpinfo中就可以看到已经有x_sendfile模块。说明配置成功
4、同时写入如下代码打开xsendfile功能
XSendFile on
或者在写一个.htaccess文件out.php代表你再那个文件中打开使用xsendfile
5、01.php中
目录结构如下: