View Single Post
Old 11-01-2022, 04:35 AM   #1879
khoinguyen1407
Junior Member
khoinguyen1407 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2022
Device: Kindle
Quote:
Originally Posted by mariosipad View Post
@khoinguyen1407

In ../cops/config_local.php set (if using apache)
Code:
    /*
     * Wich header to use when downloading books outside the web directory
     * Possible values are :
     *   X-Accel-Redirect   : For Nginx
     *   X-Sendfile         : For Lightttpd or Apache (with mod_xsendfile)
     *   No value (default) : Let PHP handle the download
     */
    $config['cops_x_accel_redirect'] = "X-Sendfile";
and try again.

In apache2 first enable mod_xsendfile (from terminal: a2enmod x-sendfile)

Hope this works, let us know.

Thanks for your reply, in your comment "In apache2 first enable mod_xsendfile (from terminal: a2enmod x-sendfile)",
I understand that I will use SSH, then run "a2enmod x-sendfile", is it right?
khoinguyen1407 is offline   Reply With Quote