I tried to install xsendfile module for apache2 as explained here: http://tn123.ath.cx/mod_xsendfile/ Unfortunately, on debian, installation failed because httpd.conf is not packaged as expected. Fortunately, a samaritan made a .deb package ready for install! (see: http://www.screenage.de/blog/2008/02/22/libapache2-mod-xsendfile-processes-x-sendfile-headers-with-apache2/) Here are the steps:
- edit /etc/apt/sources.list and add the following two lines:
deb http://ppa.launchpad.net/damokles/ubuntu hardy main deb-src http://ppa.launchpad.net/damokles/ubuntu hardy main
- save your changes and run “sudo apt-get update”
- if you’re successful, running “apt-cache search xsendfile” should return the following package:
libapache2-mod-xsendfile – Module to processes X-SENDFILE headers registered by the original output handler
- Install this package: “sudo apt-get install libapache2-mod-xsendfile”
- link newly created apache module to your active modules directory: sudo ln -s /etc/apache2/mods-available/xsendfile.load /etc/apache2/mods-enabled
- in your .htaccess file, enable the module by appending the following line: XSendFile On
note: you may also want to enable XSendFileAllowAbove on option (see xsendfile not working with apache2 for more details) - restart apache: “sudo /etc/init.d/apache2″
That’s it!
You can start using xsendfile module!
sources
- http://www.screenage.de/blog/2008/02/22/libapache2-mod-xsendfile-processes-x-sendfile-headers-with-apache2/ great creator of .deb package for xsendfile module (thank you so much, you’re the man!)
- http://tn123.ath.cx/mod_xsendfile/ source code for apache2 module (you’re the man too!)
- http://www.qc4blog.com/?p=555 blog entry on
you rule.
Step 5 can be replaced with more elegant:
sudo a2enmod xsendfile
Also, this seems to work fine on Jaunty, (even with the hardy repository)