Apache2 相对路径don';不能在Apache的modxsendfile中工作

Apache2 相对路径don';不能在Apache的modxsendfile中工作,apache2,x-sendfile,Apache2,X Sendfile,我对modxsendfile有问题。当我用绝对路径(比如/home/foo/foo.txt)发送到Apache头时,一切都正常。但是当我使用相对链接时,Apache的日志中会出现奇怪的错误 X-Sendfile: ../test.txt No such file or directory: xsendfile: cannot open file: test.txt X-Sendfile: test.txt No such file or directory: xsendfile: canno

我对modxsendfile有问题。当我用绝对路径(比如/home/foo/foo.txt)发送到Apache头时,一切都正常。但是当我使用相对链接时,Apache的日志中会出现奇怪的错误

X-Sendfile: ../test.txt
No such file or directory: xsendfile: cannot open file: test.txt


X-Sendfile: test.txt
No such file or directory: xsendfile: cannot open file: test.txt/test.txt


X-Sendfile: te%20st.txt
No such file or directory: xsendfile: cannot open file: te st.txt/te%20st.txt
这是我的站点配置(我使用mod_jk)

XSendFile打开
XSendFilePath/home/user/binares/
服务器管理员webmaster@localhost
服务器名serv1
JkMount/ajp13
JkMount/*ajp13

我认为您需要启用

XSendFileAllowAbove On

为了使用相对链接发送文件。

我认为您需要启用

XSendFileAllowAbove On

以使用相对链接发送文件。

是否确定不应使用/test.txt是否确定不应使用/test.txt