Using the « Apache XSendFile Add-On » for delivery of Downloadable Products using the Apache XSendFile module

Requires the Apache XSendFile Add-On for DownloadPlus

Download Delivery using the Apache XSendFile module is a add-on available here...



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 of the import adapter for DownloadPlus is the same as for the DownloadPlus extension itself.

Update DownloadPlus to the most recent release prior to installation of this Add-On. Updates are available in your Customer Account.



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.

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:

httpd.conf

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.

In case the download delivery is not possible using the Apache XSendFile configuration, the Add-On will fall back to the default Magento way of sending the download through the store code itself.



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.