Fast Private File Transfer using X-send file

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by hypertext200 on September 23, 2009 at 4:45am

mod_xsendfile

mod_xsendfile is a small Apache2 module that processes X-SENDFILE headers registered by the original output handler.

If it encounters the presence of such header it will discard all output and send the file specified by that header instead using Apache internals including all optimizations like caching-headers and sendfile or mmap if configured.

It is useful for processing script-output of e.g. php, perl or any cgi.
Referance from http://tn123.ath.cx/mod_xsendfile/

mod_xsendfile allows us to handle Drupal private file transfer fast and more secure way, you can keep your default path to files directory and still you can protect files from the unauthorized access to your contents with the x-send files enabled.

Module Description : http://drupal.org/project/xsend

We may need some improvements to the code and the logic that I followed, I tested the module and worked 100%, you can test the module and see how its working, I will send you benchmarking results soon. :) this is amazingly faster and secure.

AttachmentSize
without xsend files.png 31.61 KB
with send files.png 32.36 KB

Comments

thank you

Posted by marcoka on June 4, 2010 at 11:58pm

thank you for sharing this.

Upload and download

Posted by aniebel on November 16, 2010 at 3:29pm

Hi, I need to set up a file transfer tool on a site and am wondering how I would set this up for both uploads and downloads? What other modules work in conjuction with this?

Cheers!

log file serving end

Posted by thomas parquier on December 18, 2011 at 10:56pm

Hello,

Can the end of serving file by apache be notified back to a php or any logging feature ?
I'd like to decrement some variables when the file has been served.

http://httpd.apache.org/docs/

Posted by ransom on December 20, 2011 at 12:45am

http://httpd.apache.org/docs/current/logs.html#piped

There's a kitchen sink in Apache somewhere.

thank you

Posted by thomas parquier on December 20, 2011 at 9:16pm

this is a really good idea, thanks.

File API

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /