migrate from lighthttp: mod_secdownload and mod_magnet

agentzh agentzh at gmail.com
Wed May 26 10:31:21 MSD 2010

On Tue, May 25, 2010 at 10:24 PM, kf <nginx-forum at nginx.us> wrote:
>  2) I also need to dynamically manipulate the Content-Disposition header as follows: a HTTP-GET to "http://<host>/file.mp3?filename=newfilename.mp3" will return the http://<host>/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.


More information about the nginx mailing list