Migrate from lighthttp: mod_secdownload and mod_magnet

Hi,

I am looking for a replacement for lighthttp and am considering nginx.

For a successfull migration I will need replacements for:

  1. Lighthttps mod_secdownload. -does anyone know of an nginx
    replacement that will provide links with a built in expire time?

  2. I also need to dynamically manipulate the Content-Disposition
    header as follows: a HTTP-GET to
    “http:///file.mp3?filename=newfilename.mp3” will return the
    http:///file.mp3 with the “Content-Disposition” header set to
    “attachment; filename=newfilename.mp3”. -in lighthttp I use a mod_magnet
    script, any thoughts on how best to acheive this effect in nginx?

/thanks

Posted at Nginx Forum:

On Tue, May 25, 2010 at 10:24 PM, kf [email protected] wrote:

  1. I also need to dynamically manipulate the Content-Disposition header as follows: a HTTP-GET to “http:///file.mp3?filename=newfilename.mp3” will return the http:///file.mp3 with the “Content-Disposition” header set to “attachment; filename=newfilename.mp3”. -in lighthttp I use a mod_magnet script, any thoughts on how best to acheive this effect in nginx?

Try out the ngx_rewrite and ngx_headers modules?

There’s also a ngx_lua module that can give your more “dynamics”, but
atm not as powerful as lighttpd’s mod_magnet but we’re working on it.

Cheers,
-agentzh