is at rambler-co.ru
Tue Oct 21 18:55:34 MSD 2008
On Tue, Oct 21, 2008 at 10:34:55PM +0800, lhmwzy wrote:
> 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
> For example:
> In my example,when access /dll/dl/,use the hash md5(dl,secret),not
No, the sense is to protect awhole link.
> 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