Apache XSendFile:Varnish+;nginx反向代理+;阿帕奇

Apache XSendFile:Varnish+;nginx反向代理+;阿帕奇,apache,nginx,varnish,x-sendfile,x-accel-redirect,Apache,Nginx,Varnish,X Sendfile,X Accel Redirect,我已经在我的服务器上安装了XSendFile(使用apxs-cia modxsendfile.c) 在vhosts中,我打开了它,并将我的文件目录提供给它 现在的问题是,ERR\u无效\u响应 这是代码: header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=$file_name"); header("X-Sendfile: $file_path_cm

我已经在我的服务器上安装了XSendFile(使用
apxs-cia modxsendfile.c

在vhosts中,我打开了它,并将我的文件目录提供给它 现在的问题是,ERR\u无效\u响应

这是代码:

header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=$file_name");
header("X-Sendfile: $file_path_cmp");
我正在使用CWP(
CentOS Web Panel

以前我只有apache,它工作得很好

现在我有了:
Varnish缓存(端口80)->Nginx反向代理(端口81)->Apache(端口8181)


除下载部分外,一切正常

$file\u path\u cmp中到底有什么,它存在吗?