Using the « Apache XSendFile Add-On » for delivery of Downloadable Products using the Apache XSendFile module
Download Delivery using the Apache XSendFile module is a add-on available here...
Prequisites
The Add-On Apache XSendFile for DownloadPlus uses the Apache XSendFile module, and this requires the following preconditions on your Magento store installation to be fullfilled:
- The Apache XSendFile module is installed on your webserver: https://tn123.org/mod_xsendfile/
- You have access to your webservers configuration file to add the required webserver configuration options (
.htaccess
files do not support the required XSendFile configuration).
Installation
Installation of the import adapter for DownloadPlus is the same as for the DownloadPlus extension itself.
How it works
When enabling the Apache XSendFile support with this Add-On, a file requested file download will be handed off to the Apache XSendFile module which delivers the file instead of the Magento Store code itself.
Configuration
In your Magneto Stores Administrator Backend go to System
» Configuration
» Catalog
» Downloadable Delivery
:
Use Apache XSendFile Module to send downloads
Enable the XSendFile support by selecting Yes
for this option. If enabled, the Apache XSendFile Prerequisites
below will show you further instructions on the required webserver configuration, and if the Apache XSendFile module is available and loaded on the webserver.
Apache XSendFile Prerequisites
Here the required webserver (or Virtual Host) configuration options are shown, which need to be added to your webservers httpd.conf
or the related configuration file of the Apache Virtual Host.
It is required to enable the XSendFile module, and set the source file path to the media/downloadable
directory of your Magento Stores home directory:
XSendFile On XSendFilePath <path to your magento stores 'media/downloadable' directory here>
Copy and paste these settings into your webservers configuration files, and restart the webserver on service level.
What to do when...
I receive downloads with 0 bytes size
If downloads have a file size of 0 bytes
the webserver configuration option XSendFilePath
is missng or not pointing to the media/downloadable
directory of the Magneto Stores installation.