Migrating from Lighttpd : mod_secdownload show-stopper ?
melo at simplicidade.org
Fri Feb 11 12:54:25 MSK 2011
On Thu, Feb 10, 2011 at 6:22 PM, Reinis Rozitis <r at roze.lv> wrote:
>> Do you have any advices/ideas to help me mimick Lighty's
>> "mod_secdownload", please ? Actually, my application produce links like this
>> one :
> One way to work arround this would be to use X-Accel-Redirect (
> http://wiki.nginx.org/XSendfile) and rewrite (or with try_file) requests to
> some script (like php, perl or ruby) and make the decision on application
> level (would require just few lines of code to verify the hash/timestamp but
> you could even check against DB etc) while still pushing the file directly
> through nginx.
> Few articles:
FYI, this was the route I choose when I switched from Lighttpd to
nginx. I also used mod_secdownload a lot.
xmpp:melo at simplicidade.org
mailto:melo at simplicidade.org
More information about the nginx