nginx-0.7.18
lhmwzy
lhmwzy at gmail.com
Tue Oct 21 18:34:55 MSD 2008
OK.Finally I get it.
Put "rewrite ^ /dll/$secure_link break;" to the secure_link block;
But I have a question:
The hash must be md5(link/file,secret).
When the file changes,the hash should also change.
Can nginx make the hash to md5(link,secret)?then only the directory
name is the key to hash,not include the name of files under the
directory.
For example:
In my example,when access /dll/dl/,use the hash md5(dl,secret),not
md5(dl/file,secret).
2008/10/21 Igor Sysoev <is at rambler-co.ru>:
> On Tue, Oct 21, 2008 at 10:12:59PM +0800, lhmwzy wrote:
>
>> /dll/d66423000cfdc233b5517b582babb46e/dl/index.html
>> get a 404 error.
>>
>> /dll/d66423000cfdc233b5517b582babb46e/dl/
>> get a 500 error.
>>
>> I'm sure there is a file named index.html in dll/dl/.
>
> Probably you missed
>
> rewrite ^ /$secure_link break;
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>
More information about the nginx
mailing list