找回密码
 新建账号

Apache X-SENDFILE symbolic link 404 Not Found

[复制链接]
php 发表于 2018/4/9 01:11 | 显示全部楼层 |阅读模式
An HTTP 404 Not Found error occurs while using Apache X-SENDFILE to send a symlink pointing to a file stored somewhere else than the symbolic link itself.

You have to whitelist paths with the XSendFilePath directive of the xsendfile_module in the Apache httpd server configuration file to allow files within these folders to be served. A file behind a symbolic link can not get served via the X-SEND module of Apache unless its containing folder path is whitelisted. In this case an HTTP 404 Not Found error will be triggered.

XSendFilePath allows you to add additional paths to some kind of white list. All files within these paths and sub-folders are allowed to get served through mod_xsendfile. You may provide more than one path.
  1. <IfModule xsendfile_module>
  2.         XSendFile On
  3.         XSendFilePath "E:/www/wuxiancheng.cn"
  4.         XSendFilePath "F:/backup/www/wuxiancheng.cn"
  5. </IfModule>
复制代码

手机版|轻松E站

GMT+8, 2024/12/22 01:13

快速回复 返回顶部 返回列表