I am using apache2 webserver and I have installed mod_xsendfile I have something like this: < Pre> I am capable of /etc/apache2/apache2.conf: when I The download button in /file/index.php gives me an error, index.php which is located in / file / not found When I use the The file has only a few KB Anyone know how Okay this Edit: This is in error.log: The given path was above the root path: xsendfile: Unable to find file: / protected / file. I have set XSendFilePath / protected and now erro: mod xsendfile document See, you have to set those directories, from which this file can be provided. If you have done so, then I doubt any other issue, such as the symlink is not run, etc. .... header ('content-type: application / zip'); Header ('content-dispute: attachment; file name = "file.zip' '); // headers ("X-axel-redirect: / file / protected / file.zip"); // for Nginx Server Header ('X-Sendfile: /protected/file.zip'); Go out();
on XSendFile
header ('X-Sendfile: / File / protected /file.zip '); is in the first place but this is the same ..
header ("X-axel-redirect: / file / protected / file.zip"); This works but gives me an empty zip file, anyway it does not have apache2 server ..
(2) There is no such file or directory: xsendfile can not open the file: / protected / file. Zip, rferer: http://domain.com/file/
Comments
Post a Comment