nginx-0.7.18

lhmwzy lhmwzy at gmail.com
Tue Oct 14 08:53:09 MSD 2008


I have set a secure link:
  location /dl/
        {
         secure_link_secret  lhm;
            if ($secure_link == "") {
                        return 503;
             }
        }


Then
md5(dllhm)=91fe55efd557140f7a32f7f7c1c74aa3

Then access it through
http://host/91fe55efd557140f7a32f7f7c1c74aa3/dl/,but get a 404.

Any thing wrong?

2008/10/13 Igor Sysoev <is at rambler-co.ru>:
>
> The ngx_http_secure_link_module allows to create a secure link as
> /prefix/hash/link, where
>
> 1) prefix is any symbols expect "/";
> 2) hash is md5(link, secret),
>   the secret is set by secure_link_secret directive;
> 3) and link is some link to secure.
>
> Example:
>
>     location /p/ {
>         secure_link_secret  some_secret;
>
>         if ($secure_link = "") {
>             return 403;
>         }
>     }
>
> The $secure_link variable is equal to a link if a hash is valid,
> otherwise it is "".
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>





More information about the nginx mailing list