How to install xsend file on Ubuntu

To install X-SendFile in Apache2, run the following:
sudo aptitude install libapache2-mod-xsendfile
And to make sure you enable it, run the following
sudo a2enmod xsendfile
Add the following two lines in your VirtualHost file, like so:


XSendFile on
XSendFileAllowAbove on