Welcome! Log In Create A New Profile

Advanced

Re: Rewrite module and secure download

Maxim Dounin
December 16, 2009 12:00AM
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

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

Rewrite module and secure download

trinsic December 15, 2009 11:42PM

Re: Rewrite module and secure download

Maxim Dounin December 16, 2009 12:00AM

Re: Rewrite module and secure download

gog January 14, 2010 08:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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