Welcome! Log In Create A New Profile

Advanced

Re: migrate from lighthttp: mod_secdownload and mod_magnet

agentzh
May 26, 2010 02:38AM
On Tue, May 25, 2010 at 10:24 PM, kf <nginx-forum@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.

Cheers,
-agentzh

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

migrate from lighthttp: mod_secdownload and mod_magnet

kf May 25, 2010 10:24AM

Re: migrate from lighthttp: mod_secdownload and mod_magnet

agentzh May 26, 2010 02:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 298
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready