mod_xsendfile 0.8 review

Download
by rbytes.net on

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

License: The Apache License 2.0
File size: 3K
Developer: Nils Maier
0 stars award from rbytes.net

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.

mod_xsendfile is useful for processing script-output of e.g. php, perl or any cgi.

Some applications require checking for special privileges.
Other have to lookup values first (e.g.. from a DB) in order to correctly process a download request.
Or store values (download-counters come into mind).

Benefits

Uses apache internals
Optimal delivery through senfile and mmap (if available).
Sets correct cache headers such as Etag and If-Modified-Since as if the file was statically served.
Processes cache headers such as If-None-Match or If-Modified-Since.

Installation:

Grab the source.
Compile and install

apxs -cia mod_xsendfile.c

Restart apache

Requirements:
Apache

mod_xsendfile 0.8 keywords