【发布时间】:2013-11-05 23:33:40
【问题描述】:
好的。想分享这个 - 我花了 10 个小时才弄清楚。
按照here 的良好说明,我已经正确安装了 mod-xsendfile。
我还在 /etc/httpd/conf/httpd.conf 文件中正确配置了 xsendfile,并添加了设置: XSendFile 开启 XSendFilePath /var/files_need_valid_session_to_view/
而且我知道生成 X-SENDFILE 标头的代码是正确的:它在不同的服务器上运行。但是,无论我做什么,我都会收到 404 错误。我的操作系统是 CentOS 6.4 final。
【问题讨论】:
标签: php apache http-status-code-404 selinux x-sendfile