Welcome! Log In Create A New Profile

Advanced

Re: nginx as reverse proxy with "mod secdownload" feature - possible?

Reinis Rozitis
October 19, 2010 11:16AM
> nginx has no feature like mod_secdownload so far, right? Is there anything
> i
> could do to get nginx working as a proxy with something like
> mod_secdownload?
> maybe some perl module or so? the important thing would just be to have
> every
> picture/video only downloaded once, or at least once in xx days...

I havent followed what is the current status with the TTL (time to live)
secure downloads ( there is some blog post
http://www.masterzen.fr/2009/07/18/nginx-secure-link-module-with-ttl/ ) but
we use http://wiki.nginx.org/HttpSecureLinkModule

The secure link configuration is put on the caching servers (while of course
you can duplicate it also on the backend in case you want to support also
direct requests) which then fetch the object (if it doesnt exist in cache
(local tree)) from backend via normal url (and do proxy_store locally) - the
url normalising (striping out the hash parts) allows to store the same
object just once).


But to implement the download-once feature you could use php (or any other
dynamic backend) and do it via X-Accel-Redirect (
http://wiki.nginx.org/XSendfile ) - like transparently parse all the file
downloading requests (through either try_files or rewrite) and let php
decide if the file is available or not and nginx just does the transfer.


rr


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

nginx as reverse proxy with "mod secdownload" feature - possible?

Sven 'Darkman' Michels October 19, 2010 10:40AM

Re: nginx as reverse proxy with "mod secdownload" feature - possible?

Reinis Rozitis October 19, 2010 11:16AM

Re: nginx as reverse proxy with "mod secdownload" feature - possible?

Sven 'Darkman' Michels October 21, 2010 05:46AM

Re: nginx as reverse proxy with "mod secdownload" feature - possible?

Reinis Rozitis October 21, 2010 07:36AM

Re: nginx as reverse proxy with "mod secdownload" feature - possible?

agentzh October 21, 2010 10:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 154
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