Fast Private File Transfer using X-send file

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
heshanlk's picture

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.png31.61 KB
with send files.png32.36 KB

Comments

thank you

marcoka's picture

thank you for sharing this.

Upload and download

aniebel's picture

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

thomas parquier's picture

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/

ransom's picture

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

There's a kitchen sink in Apache somewhere.

thank you

thomas parquier's picture

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:

Hot content this week