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.
- <IfModule xsendfile_module>
- XSendFile On
- XSendFilePath "E:/www/wuxiancheng.cn"
- XSendFilePath "F:/backup/www/wuxiancheng.cn"