php - X-Sendfile error, file not found -


I am using apache2 webserver and I have installed mod_xsendfile I have something like this: < Pre> 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();

I am capable of /etc/apache2/apache2.conf:

  on XSendFile   

when I The download button in /file/index.php gives me an error, index.php which is located in / file / not found

header ('X-Sendfile: / File / protected /file.zip '); is in the first place but this is the same ..

When I use the header ("X-axel-redirect: / file / protected / file.zip"); This works but gives me an empty zip file, anyway it does not have apache2 server ..

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: (2) There is no such file or directory: xsendfile can not open the file: / protected / file. Zip, rferer: http://domain.com/file/

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. ....

Comments