Rewrite module and secure download

Maxim Dounin mdounin at mdounin.ru
Wed Dec 16 07:54:33 MSK 2009


Hello!

On Tue, Dec 15, 2009 at 11:42:18PM -0500, trinsic wrote:

> Hi guys, having a bit of a pickle at the moment. I've set up the secure download module and its working as it should. The problem is when you try to use it, it appends the file name as the hex timestamp (without an extension) which is at the end of the URI which isn't the ideal way of downloading things. So I tried using the rewrite module to move the file name to the end of the link.

[...]

> But where is the secure download module? It hasn't popped up and done its business with the link. Instead line 3 of the log shows it trying to open the link when it should do this:
> 
>  8156#0: *3 securedownload: evaluated value of secret: "mypass"
>  8156#0: *3 hashing string "/save/dir/6450.png/mypass/4b283bfa" with len 50
>  8156#0: *3 computed hash: 097ac16cb19ff6c163d6f813fdd44b4d
> 
> Its apparent the rewrite module and the secure download module wont work together. What can I do to fix this?

Apparently it's problem in secure download module.  Have you tried 
standart secure link module instead?

http://wiki.nginx.org/NginxHttpSecureLinkModule

Maxim Dounin



More information about the nginx mailing list